You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -14,11 +12,15 @@ function getStorage(): LibSQLStore | DynamoDBStore {
14
12
returnnewDynamoDBStore({
15
13
name: "dynamodb",
16
14
config: {
15
+
id: "storage-dynamodb",
17
16
tableName: process.env.DYNAMODB_TABLE_NAME,
18
17
},
19
18
});
20
19
}else{
21
-
returnnewLibSQLStore({url: "file::memory:"});
20
+
returnnewLibSQLStore({
21
+
id: "storage-memory",
22
+
url: "file::memory:"
23
+
});
22
24
}
23
25
}
24
26
@@ -36,7 +38,7 @@ export const mastra = new Mastra({
36
38
- Include relevant details like humidity, wind conditions, and precipitation
37
39
- Keep responses concise but informative
38
40
`,
39
-
model: openai("gpt-4o"),
41
+
model: "openai/gpt-4o",
40
42
tools: {get_weather: weatherTool},
41
43
memory: newMemory({
42
44
storage: getStorage(),
@@ -51,7 +53,7 @@ export const mastra = new Mastra({
51
53
}),
52
54
}),
53
55
backend_tool_rendering: newAgent({
54
-
name: "Weather Agent",
56
+
name: "backend_tool_rendering",
55
57
instructions: `
56
58
You are a helpful weather assistant that provides accurate weather information.
57
59
@@ -64,7 +66,7 @@ export const mastra = new Mastra({
64
66
65
67
Use the weatherTool to fetch current weather data.
66
68
`,
67
-
model: openai("gpt-4o-mini"),
69
+
model: "openai/gpt-4o-mini",
68
70
tools: {get_weather: weatherTool},
69
71
memory: newMemory({
70
72
storage: getStorage(),
@@ -84,7 +86,7 @@ export const mastra = new Mastra({
84
86
85
87
If you have just created or modified the recipe, just answer in one sentence what you did. dont describe the recipe, just say what you did. Do not mention "working memory", "memory", or "state" in your answer.
86
88
`,
87
-
model: openai("gpt-4o"),
89
+
model: "openai/gpt-4o",
88
90
memory: newMemory({
89
91
storage: getStorage(),
90
92
options: {
@@ -143,7 +145,7 @@ export const mastra = new Mastra({
143
145
instructions: `
144
146
You are a helpful assistant for creating haikus.
145
147
`,
146
-
model: openai("gpt-4o"),
148
+
model: "openai/gpt-4o",
147
149
tools: {
148
150
generate_haiku: createTool({
149
151
id: "generate_haiku",
@@ -158,7 +160,7 @@ export const mastra = new Mastra({
158
160
.describe("An array of three lines of the haiku in English"),
0 commit comments