Skip to content

Commit 2aec7e0

Browse files
mefogleclaude
andcommitted
feat: Make ADK middleware base URL configurable via environment variable
- Add ADK_MIDDLEWARE_URL environment variable support in dojo app - Configure adkMiddlewareUrl in env.ts with default to http://localhost:8000 - Update all ADK middleware agent URLs to use the configurable base URL - Update CHANGELOG to document configuration changes 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 629cfe0 commit 2aec7e0

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

typescript-sdk/apps/dojo/src/agents.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ export const agentsIntegrations: AgentIntegrationConfig[] = [
6363
id: "adk-middleware",
6464
agents: async () => {
6565
return {
66-
agentic_chat: new ServerStarterAgent({ url: "http://localhost:8000/chat" }),
67-
tool_based_generative_ui: new ServerStarterAgent({ url: "http://localhost:8000/adk-tool-based-generative-ui" }),
68-
human_in_the_loop: new ServerStarterAgent({ url: "http://localhost:8000/adk-human-in-loop-agent" }),
69-
shared_state: new ServerStarterAgent({ url: "http://localhost:8000/adk-shared-state-agent" }),
70-
predictive_state_updates: new ServerStarterAgent({ url: "http://localhost:8000/adk-predictive-state-agent" }),
66+
agentic_chat: new ServerStarterAgent({ url: `${envVars.adkMiddlewareUrl}/chat` }),
67+
tool_based_generative_ui: new ServerStarterAgent({ url: `${envVars.adkMiddlewareUrl}/adk-tool-based-generative-ui` }),
68+
human_in_the_loop: new ServerStarterAgent({ url: `${envVars.adkMiddlewareUrl}/adk-human-in-loop-agent` }),
69+
shared_state: new ServerStarterAgent({ url: `${envVars.adkMiddlewareUrl}/adk-shared-state-agent` }),
70+
predictive_state_updates: new ServerStarterAgent({ url: `${envVars.adkMiddlewareUrl}/adk-predictive-state-agent` }),
7171
};
7272
},
7373
},

typescript-sdk/apps/dojo/src/env.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ type envVars = {
88
llamaIndexUrl: string;
99
crewAiUrl: string;
1010
pydanticAIUrl: string;
11+
adkMiddlewareUrl: string;
1112
customDomainTitle: Record<string, string>;
1213
}
1314

@@ -30,6 +31,7 @@ export default function getEnvVars(): envVars {
3031
llamaIndexUrl: process.env.LLAMA_INDEX_URL || 'http://localhost:9000',
3132
crewAiUrl: process.env.CREW_AI_URL || 'http://localhost:9002',
3233
pydanticAIUrl: process.env.PYDANTIC_AI_URL || 'http://localhost:9000',
34+
adkMiddlewareUrl: process.env.ADK_MIDDLEWARE_URL || 'http://localhost:8000',
3335
customDomainTitle: customDomainTitle,
3436
}
3537
}

typescript-sdk/integrations/adk-middleware/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
- **CONFIG**: Made ADK middleware base URL configurable via `ADK_MIDDLEWARE_URL` environment variable in dojo app
12+
- **CONFIG**: Added `adkMiddlewareUrl` configuration to environment variables (defaults to `http://localhost:8000`)
13+
1014
## [0.5.0] - 2025-08-05
1115

1216
### Breaking Changes

0 commit comments

Comments
 (0)