Skip to content

Commit bc5c163

Browse files
committed
Wrap tool parameters of AI SDK
1 parent 916e44a commit bc5c163

File tree

6 files changed

+424
-2
lines changed

6 files changed

+424
-2
lines changed

library/agent/Context.ts

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export type Context = {
3030
*/
3131
outgoingRequestRedirects?: { source: URL; destination: URL }[];
3232
executedMiddleware?: boolean;
33+
aiToolParams?: unknown[]; // Parameters send to functions/tools that are called by a LLM
3334
};
3435

3536
/**

library/package-lock.json

+257-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

library/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
},
4343
"sideEffects": true,
4444
"devDependencies": {
45+
"@ai-sdk/google": "^1.2.13",
4546
"@clickhouse/client": "^1.7.0",
4647
"@eslint/js": "^9.23.0",
4748
"@fastify/cookie": "^10.0.0",
@@ -70,6 +71,7 @@
7071
"@types/sinonjs__fake-timers": "^8.1.5",
7172
"@types/supertest": "^6.0.2",
7273
"@types/xml2js": "^0.4.14",
74+
"ai": "^4.3.9",
7375
"aws-sdk": "^2.1595.0",
7476
"axios": "^1.8.4",
7577
"better-sqlite3": "^11.2.0",
@@ -119,7 +121,8 @@
119121
"undici-v6": "npm:undici@^6.0.0",
120122
"undici-v7": "npm:undici@^7.0.0",
121123
"xml-js": "^1.6.11",
122-
"xml2js": "^0.6.2"
124+
"xml2js": "^0.6.2",
125+
"zod": "^3.24.3"
123126
},
124127
"scripts": {
125128
"test": "node ../scripts/run-tap.js",

0 commit comments

Comments
 (0)