File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
typescript-sdk/apps/dojo/src Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -291,13 +291,11 @@ export const agentsIntegrations: AgentIntegrationConfig[] = [
291291 {
292292 id : "a2a" ,
293293 agents : async ( ) => {
294- // TODO: configurable
295294 // A2A agents: building management, finance, it agents
296- const agentUrls = [ "http://127.0.0.1:9001" , "http://127.0.0.1:9002" , "http://127.0.0.1:9003" ] ;
297- // TODO: configurable
295+ const agentUrls = [ envVars . a2aMiddlewareBuildingsManagementUrl , envVars . a2aMiddlewareFinanceUrl , envVars . a2aMiddlewareItUrl ] ;
298296 // AGUI orchestration/routing agent
299297 const orchestrationAgent = new HttpAgent ( {
300- url : "http://127.0.0.1:9000" ,
298+ url : envVars . a2aMiddlewareOrchestratorUrl ,
301299 } ) ;
302300 return {
303301 a2a_chat : new A2AMiddlewareAgent ( {
@@ -316,7 +314,6 @@ export const agentsIntegrations: AgentIntegrationConfig[] = [
316314 When choosing a seat with the buildings management agent, You MUST use the \`pickTable\` tool to have the user pick a seat.
317315 The buildings management agent will then use the \`pickSeat\` tool to pick a seat.
318316 ` ,
319-
320317 } ) ,
321318 } ;
322319 } ,
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ type envVars = {
1010 crewAiUrl : string ;
1111 pydanticAIUrl : string ;
1212 adkMiddlewareUrl : string ;
13+ a2aMiddlewareBuildingsManagementUrl : string ;
14+ a2aMiddlewareFinanceUrl : string ;
15+ a2aMiddlewareItUrl : string ;
16+ a2aMiddlewareOrchestratorUrl : string ;
1317 customDomainTitle : Record < string , string > ;
1418}
1519
@@ -34,6 +38,10 @@ export default function getEnvVars(): envVars {
3438 crewAiUrl : process . env . CREW_AI_URL || 'http://localhost:9002' ,
3539 pydanticAIUrl : process . env . PYDANTIC_AI_URL || 'http://localhost:9000' ,
3640 adkMiddlewareUrl : process . env . ADK_MIDDLEWARE_URL || 'http://localhost:8000' ,
41+ a2aMiddlewareBuildingsManagementUrl : process . env . A2A_MIDDLEWARE_BUILDINGS_MANAGEMENT_URL || 'http://localhost:9001' ,
42+ a2aMiddlewareFinanceUrl : process . env . A2A_MIDDLEWARE_FINANCE_URL || 'http://localhost:9002' ,
43+ a2aMiddlewareItUrl : process . env . A2A_MIDDLEWARE_IT_URL || 'http://localhost:9003' ,
44+ a2aMiddlewareOrchestratorUrl : process . env . A2A_MIDDLEWARE_ORCHESTRATOR_URL || 'http://localhost:9000' ,
3745 customDomainTitle : customDomainTitle ,
3846 }
3947}
You can’t perform that action at this time.
0 commit comments