@@ -8,12 +8,11 @@ import { MastraClient } from "@mastra/client-js";
8
8
import { MastraAgent } from "@ag-ui/mastra" ;
9
9
import { VercelAISDKAgent } from "@ag-ui/vercel-ai-sdk" ;
10
10
import { openai } from "@ai-sdk/openai" ;
11
- import { LangGraphAgent } from "@ag-ui/langgraph" ;
11
+ import { LangGraphAgent , LangGraphHttpAgent } from "@ag-ui/langgraph" ;
12
12
import { AgnoAgent } from "@ag-ui/agno" ;
13
13
import { LlamaIndexAgent } from "@ag-ui/llamaindex" ;
14
14
import { CrewAIAgent } from "@ag-ui/crewai" ;
15
15
import { mastra } from "./mastra" ;
16
- import { HttpAgent } from "@ag-ui/client" ;
17
16
18
17
export const agentsIntegrations : AgentIntegrationConfig [ ] = [
19
18
{
@@ -118,22 +117,22 @@ export const agentsIntegrations: AgentIntegrationConfig[] = [
118
117
id : "langgraph-fastapi" ,
119
118
agents : async ( ) => {
120
119
return {
121
- agentic_chat : new HttpAgent ( {
120
+ agentic_chat : new LangGraphHttpAgent ( {
122
121
url : "http://localhost:8000/agent/agentic_chat" ,
123
122
} ) ,
124
- agentic_generative_ui : new HttpAgent ( {
123
+ agentic_generative_ui : new LangGraphHttpAgent ( {
125
124
url : "http://localhost:8000/agent/agentic_generative_ui" ,
126
125
} ) ,
127
- human_in_the_loop : new HttpAgent ( {
126
+ human_in_the_loop : new LangGraphHttpAgent ( {
128
127
url : "http://localhost:8000/agent/human_in_the_loop" ,
129
128
} ) ,
130
- predictive_state_updates : new HttpAgent ( {
129
+ predictive_state_updates : new LangGraphHttpAgent ( {
131
130
url : "http://localhost:8000/agent/predictive_state_updates" ,
132
131
} ) ,
133
- shared_state : new HttpAgent ( {
132
+ shared_state : new LangGraphHttpAgent ( {
134
133
url : "http://localhost:8000/agent/shared_state" ,
135
134
} ) ,
136
- tool_based_generative_ui : new HttpAgent ( {
135
+ tool_based_generative_ui : new LangGraphHttpAgent ( {
137
136
url : "http://localhost:8000/agent/tool_based_generative_ui" ,
138
137
} ) ,
139
138
} ;
0 commit comments