Skip to content

Commit 77890f2

Browse files
committed
Support env var url for langgraph fastapi
1 parent be20ffc commit 77890f2

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
@@ -146,22 +146,22 @@ export const agentsIntegrations: AgentIntegrationConfig[] = [
146146
agents: async () => {
147147
return {
148148
agentic_chat: new LangGraphHttpAgent({
149-
url: "http://localhost:8000/agent/agentic_chat",
149+
url: `${envVars.langgraphFastApiUrl}/agent/agentic_chat`,
150150
}),
151151
agentic_generative_ui: new LangGraphHttpAgent({
152-
url: "http://localhost:8000/agent/agentic_generative_ui",
152+
url: `${envVars.langgraphFastApiUrl}/agent/agentic_generative_ui`,
153153
}),
154154
human_in_the_loop: new LangGraphHttpAgent({
155-
url: "http://localhost:8000/agent/human_in_the_loop",
155+
url: `${envVars.langgraphFastApiUrl}/agent/human_in_the_loop`,
156156
}),
157157
predictive_state_updates: new LangGraphHttpAgent({
158-
url: "http://localhost:8000/agent/predictive_state_updates",
158+
url: `${envVars.langgraphFastApiUrl}/agent/predictive_state_updates`,
159159
}),
160160
shared_state: new LangGraphHttpAgent({
161-
url: "http://localhost:8000/agent/shared_state",
161+
url: `${envVars.langgraphFastApiUrl}/agent/shared_state`,
162162
}),
163163
tool_based_generative_ui: new LangGraphHttpAgent({
164-
url: "http://localhost:8000/agent/tool_based_generative_ui",
164+
url: `${envVars.langgraphFastApiUrl}/agent/tool_based_generative_ui`,
165165
}),
166166
};
167167
},

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)