Update dependencies (#473)
This commit is contained in:
parent
490cb8ae38
commit
de7b655214
3 changed files with 3483 additions and 2183 deletions
|
|
@ -14,15 +14,15 @@
|
|||
"type": "module",
|
||||
"dependencies": {
|
||||
"@ai-sdk/openai": "^1.3.22",
|
||||
"@arcadeai/arcadejs": "^1.5.0",
|
||||
"@mastra/core": "0.9.4-alpha.1",
|
||||
"@mastra/libsql": "0.0.4-alpha.1",
|
||||
"@mastra/memory": "0.3.4-alpha.1",
|
||||
"@arcadeai/arcadejs": "^1.8.1",
|
||||
"@mastra/core": "latest",
|
||||
"@mastra/libsql": "latest",
|
||||
"@mastra/memory": "latest",
|
||||
"zod": "^3.24.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^22.15.17",
|
||||
"mastra": "0.6.3-alpha.1",
|
||||
"@types/node": "^24.0.10",
|
||||
"mastra": "0.10.9",
|
||||
"typescript": "^5.8.3"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -5,6 +5,8 @@ import {
|
|||
toZodToolSet,
|
||||
} from "@arcadeai/arcadejs/lib";
|
||||
import { Agent } from "@mastra/core/agent";
|
||||
import { Memory } from "@mastra/memory";
|
||||
import { LibSQLStore } from "@mastra/libsql";
|
||||
|
||||
// Initialize Arcade
|
||||
const arcade = new Arcade();
|
||||
|
|
@ -36,6 +38,13 @@ export const googleTools = toZodToolSet({
|
|||
executeFactory: executeOrAuthorizeZodTool, // Checks if tool is authorized and executes it, or returns authorization URL if needed
|
||||
});
|
||||
|
||||
// Initialize memory
|
||||
const memory = new Memory({
|
||||
storage: new LibSQLStore({
|
||||
url: "file:../../memory.db",
|
||||
}),
|
||||
});
|
||||
|
||||
// Create an agent with Google tools
|
||||
export const googleAgent = new Agent({
|
||||
name: "googleAgent",
|
||||
|
|
@ -50,5 +59,6 @@ When helping users:
|
|||
|
||||
Use the googleTools to interact with various Google services and perform related tasks.`,
|
||||
model: openai("gpt-4o-mini"),
|
||||
memory,
|
||||
tools: googleTools,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue