Skip to content

Commit 301c670

Browse files
abhiaiyer91tylerslaton
authored andcommitted
Adding streamVNext to agui
1 parent 63d5158 commit 301c670

File tree

8 files changed

+3673
-1998
lines changed

8 files changed

+3673
-1998
lines changed

typescript-sdk/apps/dojo/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@
2222
"@ag-ui/server-starter": "workspace:*",
2323
"@ag-ui/server-starter-all-features": "workspace:*",
2424
"@ag-ui/vercel-ai-sdk": "workspace:*",
25-
"@ai-sdk/openai": "^1.3.22",
2625
"@copilotkit/react-core": "1.10.5",
2726
"@copilotkit/react-ui": "1.10.5",
2827
"@copilotkit/runtime": "1.10.5",
2928
"@copilotkit/runtime-client-gql": "1.10.5",
3029
"@copilotkit/shared": "1.10.5",
31-
"@mastra/client-js": "^0.10.18",
32-
"@mastra/core": "^0.13.0",
33-
"@mastra/dynamodb": "^0.13.3",
34-
"@mastra/libsql": "^0.13.0",
35-
"@mastra/loggers": "^0.10.5",
36-
"@mastra/memory": "^0.12.0",
30+
"@mastra/client-js": "^0.14.0",
31+
"@mastra/core": "^0.19.0",
32+
"@mastra/dynamodb": "^0.15.4",
33+
"@mastra/libsql": "^0.15.0",
34+
"@mastra/loggers": "^0.10.14",
35+
"@mastra/memory": "^0.15.4",
36+
"@ai-sdk/openai": "^2.0.42",
3737
"@mdx-js/loader": "^3.1.0",
3838
"@mdx-js/mdx": "^3.1.0",
3939
"@mdx-js/react": "^3.1.0",
@@ -67,7 +67,7 @@
6767
"tailwind-merge": "^3.0.2",
6868
"tailwindcss-animate": "^1.0.7",
6969
"uuid": "^11.1.0",
70-
"zod": "^3.22.4"
70+
"zod": "^4.1.5"
7171
},
7272
"peerDependencies": {
7373
"@ag-ui/client": "workspace:*",
@@ -93,4 +93,4 @@
9393
"typescript": "^5",
9494
"wait-port": "^1.1.0"
9595
}
96-
}
96+
}

typescript-sdk/apps/dojo/src/app/[integrationId]/feature/agentic_chat/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const Chat = () => {
3737
{
3838
name: "background",
3939
type: "string",
40-
description: "The background. Prefer gradients.",
40+
description: "The background. Prefer gradients. Only use when asked.",
4141
},
4242
],
4343
handler: ({ background }) => {

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ import { z } from "zod";
1313
function getStorage(): LibSQLStore | DynamoDBStore {
1414
if (process.env.DYNAMODB_TABLE_NAME) {
1515
return new DynamoDBStore({
16-
name: "dynamodb",
17-
config: {
18-
tableName: process.env.DYNAMODB_TABLE_NAME
19-
},
20-
});
16+
name: "dynamodb",
17+
config: {
18+
tableName: process.env.DYNAMODB_TABLE_NAME
19+
},
20+
});
2121
} else {
2222
return new LibSQLStore({ url: "file::memory:" });
2323
}
@@ -38,9 +38,7 @@ export const mastra = new Mastra({
3838
- If giving a location with multiple parts (e.g. "New York, NY"), use the most relevant part (e.g. "New York")
3939
- Include relevant details like humidity, wind conditions, and precipitation
4040
- Keep responses concise but informative
41-
42-
Use the weatherTool to fetch current weather data.
43-
`,
41+
`,
4442
model: openai("gpt-4o"),
4543
memory: new Memory({
4644
storage: getStorage(),

0 commit comments

Comments
 (0)