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",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ai-sdk/openai": "^1.3.22",
|
"@ai-sdk/openai": "^1.3.22",
|
||||||
"@arcadeai/arcadejs": "^1.5.0",
|
"@arcadeai/arcadejs": "^1.8.1",
|
||||||
"@mastra/core": "0.9.4-alpha.1",
|
"@mastra/core": "latest",
|
||||||
"@mastra/libsql": "0.0.4-alpha.1",
|
"@mastra/libsql": "latest",
|
||||||
"@mastra/memory": "0.3.4-alpha.1",
|
"@mastra/memory": "latest",
|
||||||
"zod": "^3.24.4"
|
"zod": "^3.24.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^22.15.17",
|
"@types/node": "^24.0.10",
|
||||||
"mastra": "0.6.3-alpha.1",
|
"mastra": "0.10.9",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.8.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -5,6 +5,8 @@ import {
|
||||||
toZodToolSet,
|
toZodToolSet,
|
||||||
} from "@arcadeai/arcadejs/lib";
|
} from "@arcadeai/arcadejs/lib";
|
||||||
import { Agent } from "@mastra/core/agent";
|
import { Agent } from "@mastra/core/agent";
|
||||||
|
import { Memory } from "@mastra/memory";
|
||||||
|
import { LibSQLStore } from "@mastra/libsql";
|
||||||
|
|
||||||
// Initialize Arcade
|
// Initialize Arcade
|
||||||
const arcade = new 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
|
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
|
// Create an agent with Google tools
|
||||||
export const googleAgent = new Agent({
|
export const googleAgent = new Agent({
|
||||||
name: "googleAgent",
|
name: "googleAgent",
|
||||||
|
|
@ -50,5 +59,6 @@ When helping users:
|
||||||
|
|
||||||
Use the googleTools to interact with various Google services and perform related tasks.`,
|
Use the googleTools to interact with various Google services and perform related tasks.`,
|
||||||
model: openai("gpt-4o-mini"),
|
model: openai("gpt-4o-mini"),
|
||||||
|
memory,
|
||||||
tools: googleTools,
|
tools: googleTools,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue