Skip to content

Commit ed52bbf

Browse files
committed
Support env var url for langgraph fastapi
1 parent 913492f commit ed52bbf

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,22 +120,22 @@ export const agentsIntegrations: AgentIntegrationConfig[] = [
120120
agents: async () => {
121121
return {
122122
agentic_chat: new LangGraphHttpAgent({
123-
url: "http://localhost:8000/agent/agentic_chat",
123+
url: `${envVars.langgraphFastApiUrl}/agent/agentic_chat`,
124124
}),
125125
agentic_generative_ui: new LangGraphHttpAgent({
126-
url: "http://localhost:8000/agent/agentic_generative_ui",
126+
url: `${envVars.langgraphFastApiUrl}/agent/agentic_generative_ui`,
127127
}),
128128
human_in_the_loop: new LangGraphHttpAgent({
129-
url: "http://localhost:8000/agent/human_in_the_loop",
129+
url: `${envVars.langgraphFastApiUrl}/agent/human_in_the_loop`,
130130
}),
131131
predictive_state_updates: new LangGraphHttpAgent({
132-
url: "http://localhost:8000/agent/predictive_state_updates",
132+
url: `${envVars.langgraphFastApiUrl}/agent/predictive_state_updates`,
133133
}),
134134
shared_state: new LangGraphHttpAgent({
135-
url: "http://localhost:8000/agent/shared_state",
135+
url: `${envVars.langgraphFastApiUrl}/agent/shared_state`,
136136
}),
137137
tool_based_generative_ui: new LangGraphHttpAgent({
138-
url: "http://localhost:8000/agent/tool_based_generative_ui",
138+
url: `${envVars.langgraphFastApiUrl}/agent/tool_based_generative_ui`,
139139
}),
140140
};
141141
},

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ type envVars = {
33
serverStarterAllFeaturesUrl: string;
44
mastraUrl: string;
55
langgraphUrl: string;
6+
langgraphFastApiUrl: string;
67
agnoUrl: string;
78
llamaIndexUrl: string;
89
crewAiUrl: string;
@@ -14,6 +15,7 @@ export default function getEnvVars(): envVars {
1415
serverStarterAllFeaturesUrl: process.env.SERVER_STARTER_ALL_FEATURES_URL || 'http://localhost:8000',
1516
mastraUrl: process.env.MASTRA_URL || 'http://localhost:4111',
1617
langgraphUrl: process.env.LANGGRAPH_URL || 'http://localhost:2024',
18+
langgraphFastApiUrl: process.env.LANGGRAPH_FAST_API_URL || 'http://localhost:8000',
1719
agnoUrl: process.env.AGNO_URL || 'http://localhost:9001',
1820
llamaIndexUrl: process.env.LLAMA_INDEX_URL || 'http://localhost:9000',
1921
crewAiUrl: process.env.CREW_AI_URL || 'http://localhost:9002',

0 commit comments

Comments
 (0)