Skip to content

Commit 465811c

Browse files
committed
add mockstore
1 parent aa22400 commit 465811c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

typescript-sdk/apps/dojo/src/local/mastra.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import "server-only";
22
import { openai } from "@ai-sdk/openai";
33
import { Agent } from "@mastra/core/agent";
44
import { Memory } from "@mastra/memory";
5+
import { MockStore } from "@mastra/core/storage";
6+
57
// import { weatherTool } from "../tools/weather-tool";
68

79
export const agenticChatMastraAgent = (name: string) =>
@@ -21,5 +23,7 @@ export const agenticChatMastraAgent = (name: string) =>
2123
`,
2224
model: openai("gpt-4o-mini"),
2325
// tools: { weatherTool },
24-
memory: new Memory({}),
26+
memory: new Memory({
27+
storage: new MockStore(),
28+
}),
2529
});

0 commit comments

Comments
 (0)