Skip to content

Commit ed6f275

Browse files
committed
chore: align ai dependencies with v5 release
1 parent 45ff2ca commit ed6f275

File tree

9 files changed

+485
-524
lines changed

9 files changed

+485
-524
lines changed

apps/dojo/package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@
2626
"@ag-ui/spring-ai": "workspace:*",
2727
"@ag-ui/vercel-ai-sdk": "workspace:*",
2828
"@ai-sdk/openai": "^2.0.57",
29-
"@copilotkit/react-core": "0.0.0-feat-cpk-1-5-20251031165308",
30-
"@copilotkit/react-ui": "0.0.0-feat-cpk-1-5-20251031165308",
31-
"@copilotkit/runtime": "0.0.0-feat-cpk-1-5-20251031165308",
32-
"@copilotkit/runtime-client-gql": "0.0.0-feat-cpk-1-5-20251031165308",
33-
"@copilotkit/shared": "0.0.0-feat-cpk-1-5-20251031165308",
29+
"@copilotkit/react-core": "0.0.0-feat-cpk-1-5-20251104211725",
30+
"@copilotkit/react-ui": "0.0.0-feat-cpk-1-5-20251104211725",
31+
"@copilotkit/runtime": "0.0.0-feat-cpk-1-5-20251104211725",
32+
"@copilotkit/runtime-client-gql": "0.0.0-feat-cpk-1-5-20251104211725",
33+
"@copilotkit/shared": "0.0.0-feat-cpk-1-5-20251104211725",
34+
"@copilotkitnext/runtime": "0.0.20",
35+
"@copilotkitnext/react": "0.0.20",
3436
"@mastra/client-js": "^0.15.2",
3537
"@mastra/core": "^0.20.2",
3638
"@mastra/dynamodb": "^0.15.9",
@@ -52,6 +54,7 @@
5254
"@tiptap/react": "^2.27.0",
5355
"@tiptap/starter-kit": "^2.27.0",
5456
"@types/react-syntax-highlighter": "^15.5.13",
57+
"ai": "5.0.59",
5558
"class-variance-authority": "^0.7.1",
5659
"clsx": "^2.1.1",
5760
"dedent": "^1.7.0",
@@ -64,7 +67,7 @@
6467
"markdown-it-ins": "^4.0.0",
6568
"next": "15.2.1",
6669
"next-themes": "^0.4.6",
67-
"openai": "^4.104.0",
70+
"openai": "^5.9.0",
6871
"react": "^19.2.0",
6972
"react-dom": "^19.2.0",
7073
"react-markdown": "^10.1.0",

apps/dojo/src/agents.ts

Lines changed: 36 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ import { AgentIntegrationConfig } from "./types/integration";
44
import { MiddlewareStarterAgent } from "@ag-ui/middleware-starter";
55
import { ServerStarterAgent } from "@ag-ui/server-starter";
66
import { ServerStarterAllFeaturesAgent } from "@ag-ui/server-starter-all-features";
7-
import { MastraClient } from "@mastra/client-js";
8-
import { MastraAgent } from "@ag-ui/mastra";
9-
import { VercelAISDKAgent } from "@ag-ui/vercel-ai-sdk";
10-
import { openai } from "@ai-sdk/openai";
7+
// import { MastraClient } from "@mastra/client-js";
8+
// import { MastraAgent } from "@ag-ui/mastra";
9+
// import { VercelAISDKAgent } from "@ag-ui/vercel-ai-sdk";
10+
// import { openai } from "@ai-sdk/openai";
1111
import { LangGraphAgent, LangGraphHttpAgent } from "@ag-ui/langgraph";
1212
import { AgnoAgent } from "@ag-ui/agno";
1313
import { LlamaIndexAgent } from "@ag-ui/llamaindex";
1414
import { CrewAIAgent } from "@ag-ui/crewai";
1515
import getEnvVars from "./env";
16-
import { mastra } from "./mastra";
16+
// import { mastra } from "./mastra";
1717
import { PydanticAIAgent } from "@ag-ui/pydantic-ai";
1818
import { ADKAgent } from "@ag-ui/adk";
19-
import { SpringAiAgent } from '@ag-ui/spring-ai';
19+
import { SpringAiAgent } from "@ag-ui/spring-ai";
2020
import { HttpAgent } from "@ag-ui/client";
2121
import { A2AMiddlewareAgent } from "@ag-ui/a2a-middleware";
2222

@@ -81,7 +81,9 @@ export const agentsIntegrations: AgentIntegrationConfig[] = [
8181
backend_tool_rendering: new ADKAgent({
8282
url: `${envVars.adkMiddlewareUrl}/backend_tool_rendering`,
8383
}),
84-
shared_state: new ADKAgent({ url: `${envVars.adkMiddlewareUrl}/adk-shared-state-agent` }),
84+
shared_state: new ADKAgent({
85+
url: `${envVars.adkMiddlewareUrl}/adk-shared-state-agent`,
86+
}),
8587
// predictive_state_updates: new ADKAgent({ url: `${envVars.adkMiddlewareUrl}/adk-predictive-state-agent` }),
8688
};
8789
},
@@ -114,24 +116,25 @@ export const agentsIntegrations: AgentIntegrationConfig[] = [
114116
};
115117
},
116118
},
117-
{
118-
id: "mastra",
119-
agents: async () => {
120-
const mastraClient = new MastraClient({
121-
baseUrl: envVars.mastraUrl,
122-
});
119+
// Disable until we can support Vercel AI SDK v5
120+
// {
121+
// id: "mastra",
122+
// agents: async () => {
123+
// const mastraClient = new MastraClient({
124+
// baseUrl: envVars.mastraUrl,
125+
// });
123126

124-
return MastraAgent.getRemoteAgents({
125-
mastraClient,
126-
});
127-
},
128-
},
129-
{
130-
id: "mastra-agent-local",
131-
agents: async () => {
132-
return MastraAgent.getLocalAgents({ mastra });
133-
},
134-
},
127+
// return MastraAgent.getRemoteAgents({
128+
// mastraClient,
129+
// });
130+
// },
131+
// },
132+
// {
133+
// id: "mastra-agent-local",
134+
// agents: async () => {
135+
// return MastraAgent.getLocalAgents({ mastra });
136+
// },
137+
// },
135138
// Disabled until we can support Vercel AI SDK v5
136139
// {
137140
// id: "vercel-ai-sdk",
@@ -273,26 +276,26 @@ export const agentsIntegrations: AgentIntegrationConfig[] = [
273276
},
274277
},
275278
{
276-
id: 'spring-ai',
279+
id: "spring-ai",
277280
agents: async () => {
278281
return {
279282
agentic_chat: new SpringAiAgent({
280-
url: `${envVars.springAiUrl}/agentic_chat/agui`
283+
url: `${envVars.springAiUrl}/agentic_chat/agui`,
281284
}),
282285
shared_state: new SpringAiAgent({
283-
url: `${envVars.springAiUrl}/shared_state/agui`
286+
url: `${envVars.springAiUrl}/shared_state/agui`,
284287
}),
285288
tool_based_generative_ui: new SpringAiAgent({
286-
url: `${envVars.springAiUrl}/tool_based_generative_ui/agui`
289+
url: `${envVars.springAiUrl}/tool_based_generative_ui/agui`,
287290
}),
288291
human_in_the_loop: new SpringAiAgent({
289-
url: `${envVars.springAiUrl}/human_in_the_loop/agui`
292+
url: `${envVars.springAiUrl}/human_in_the_loop/agui`,
290293
}),
291294
agentic_generative_ui: new SpringAiAgent({
292-
url: `${envVars.springAiUrl}/agentic_generative_ui/agui`
293-
})
294-
}
295-
}
295+
url: `${envVars.springAiUrl}/agentic_generative_ui/agui`,
296+
}),
297+
};
298+
},
296299
},
297300
{
298301
id: "llama-index",

apps/dojo/src/app/api/copilotkit/[integrationId]/[[...slug]]/route.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
import "reflect-metadata";
12
import {
23
CopilotRuntime,
34
ExperimentalEmptyAdapter,
45
copilotRuntimeNextJSAppRouterEndpoint,
56
} from "@copilotkit/runtime";
67
import { agentsIntegrations } from "@/agents";
7-
import { handle } from 'hono/vercel';
8+
import { handle } from "hono/vercel";
89

910
async function createApp(integrationId: string) {
1011
const integration = agentsIntegrations.find((i) => i.id === integrationId);

0 commit comments

Comments
 (0)