Skip to content

Commit b0bd9b8

Browse files
committed
Update mastra app to latest dependency versions
1 parent 88abb07 commit b0bd9b8

File tree

4 files changed

+3224
-4025
lines changed

4 files changed

+3224
-4025
lines changed

.labspace/06-putting-it-all-together.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,11 @@ As you saw in the Compose file, the `OPENAI_BASE_URL`, `OPENAI_MODEL`, and `MCP_
156156

157157
```javascript
158158
export const jokeAgent = new Agent({
159-
name: 'Joke creator',
159+
id: 'Joke creator',
160+
name: "Joke creator",
160161
instructions: AGENT_PROMPT,
161-
model: openai(process.env.OPENAI_MODEL || "gpt-4"),
162-
tools: await mcp.getTools(),
162+
model: openai.chat(process.env.OPENAI_MODEL || "gpt-4"),
163+
tools: await mcp.listTools(),
163164
});
164165
```
165166

0 commit comments

Comments
 (0)