Skip to content

Commit 27b5c47

Browse files
author
Rana Umar Majeed
committed
Strands integration
1 parent 9e5c6a7 commit 27b5c47

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

apps/dojo/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"@ag-ui/server-starter": "workspace:*",
2626
"@ag-ui/server-starter-all-features": "workspace:*",
2727
"@ag-ui/vercel-ai-sdk": "workspace:*",
28+
"@ag-ui/aws-strands-integration": "workspace:*",
2829
"@ai-sdk/openai": "^2.0.42",
2930
"@copilotkit/react-core": "1.10.6",
3031
"@copilotkit/react-ui": "1.10.6",

apps/dojo/src/agents.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { ADKAgent } from "@ag-ui/adk";
1919
import { SpringAiAgent } from '@ag-ui/spring-ai';
2020
import { HttpAgent } from "@ag-ui/client";
2121
import { A2AMiddlewareAgent } from "@ag-ui/a2a-middleware";
22+
import { AWSStrandsAgent } from "@ag-ui/aws-strands-integration";
2223

2324
const envVars = getEnvVars();
2425
export const agentsIntegrations: AgentIntegrationConfig[] = [
@@ -375,4 +376,15 @@ export const agentsIntegrations: AgentIntegrationConfig[] = [
375376
};
376377
},
377378
},
379+
{
380+
id: "aws-strands",
381+
agents: async () => {
382+
return {
383+
agentic_chat: new AWSStrandsAgent({ url: `${envVars.awsStrandsUrl}/agentic-chat/` }),
384+
backend_tool_rendering: new AWSStrandsAgent({ url: `${envVars.awsStrandsUrl}/backend-tool-rendering/` }),
385+
agentic_generative_ui: new AWSStrandsAgent({ url: `${envVars.awsStrandsUrl}/agentic-generative-ui/` }),
386+
shared_state: new AWSStrandsAgent({ url: `${envVars.awsStrandsUrl}/shared-state/` }),
387+
};
388+
},
389+
},
378390
];

apps/dojo/src/env.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ type envVars = {
1515
a2aMiddlewareFinanceUrl: string;
1616
a2aMiddlewareItUrl: string;
1717
a2aMiddlewareOrchestratorUrl: string;
18+
awsStrandsUrl: string;
1819
customDomainTitle: Record<string, string>;
1920
}
2021

@@ -44,6 +45,7 @@ export default function getEnvVars(): envVars {
4445
a2aMiddlewareFinanceUrl: process.env.A2A_MIDDLEWARE_FINANCE_URL || 'http://localhost:9002',
4546
a2aMiddlewareItUrl: process.env.A2A_MIDDLEWARE_IT_URL || 'http://localhost:9003',
4647
a2aMiddlewareOrchestratorUrl: process.env.A2A_MIDDLEWARE_ORCHESTRATOR_URL || 'http://localhost:9000',
48+
awsStrandsUrl: process.env.AWS_STRANDS_URL || 'http://localhost:8000',
4749
customDomainTitle: customDomainTitle,
4850
}
4951
}

apps/dojo/src/menu.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,14 @@ export const menuIntegrations: MenuIntegrationConfig[] = [
160160
name: "A2A",
161161
features: ["a2a_chat"],
162162
},
163+
{
164+
id: "aws-strands",
165+
name: "AWS Strands",
166+
features: [
167+
"agentic_chat",
168+
"backend_tool_rendering",
169+
"agentic_generative_ui",
170+
"shared_state",
171+
],
172+
},
163173
];

0 commit comments

Comments
 (0)