File tree Expand file tree Collapse file tree 5 files changed +11
-11
lines changed
coagents-research-canvas/agent/research_canvas
coagents-starter/agent-py/sample_agent Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ from fastapi import FastAPI
1414from contextlib import asynccontextmanager
1515from langgraph.checkpoint.postgres.aio import AsyncPostgresSaver
1616from copilotkit import LangGraphAGUIAgent
17- from ag_ui_langgraph import add_langgraph_fastapi_endpoint
17+ from ag_ui_langgraph import add_langgraph_fastapi_endpoints
1818
1919graph = None
2020@asynccontextmanager
@@ -31,7 +31,7 @@ async def lifespan(app: FastAPI):
3131
3232app = FastAPI(lifespan = lifespan)
3333
34- add_langgraph_fastapi_endpoint (
34+ add_langgraph_fastapi_endpoints (
3535 app = app,
3636 agent = LangGraphAGUIAgent(
3737 name = " research_agent" ,
Original file line number Diff line number Diff line change @@ -94,11 +94,11 @@ Everything else (mainly your graph) stays the same.
9494 ``` python
9595 from fastapi import FastAPI
9696 from copilotkit import LangGraphAGUIAgent
97- from ag_ui_langgraph import add_langgraph_fastapi_endpoint
97+ from ag_ui_langgraph import add_langgraph_fastapi_endpoints
9898 from .agent import graph
9999
100100 app = FastAPI()
101- add_langgraph_fastapi_endpoint (
101+ add_langgraph_fastapi_endpoints (
102102 app = app,
103103 agent = LangGraphAGUIAgent(
104104 name = " sample_agent" ,
Original file line number Diff line number Diff line change @@ -64,15 +64,15 @@ import { Tab } from "../components/react/tabs";
6464 from fastapi import FastAPI
6565 import uvicorn
6666 from copilotkit import LangGraphAGUIAgent # [!code highlight]
67- from ag_ui_langgraph import add_langgraph_fastapi_endpoint # [!code highlight]
67+ from ag_ui_langgraph import add_langgraph_fastapi_endpoints # [!code highlight]
6868 from sample_agent.agent import graph # the coagents-starter path, replace this if its different # [!code highlight]
6969
7070 from dotenv import load_dotenv
7171 load_dotenv()
7272
7373 app = FastAPI()
7474 # [!code highlight:9]
75- add_langgraph_fastapi_endpoint (
75+ add_langgraph_fastapi_endpoints (
7676 app = app,
7777 agent = LangGraphAGUIAgent(
7878 name = " sample_agent" , # the name of your agent defined in langgraph.json
Original file line number Diff line number Diff line change 1212from copilotkit .crewai import CrewAIAgent
1313from research_canvas .crewai .agent import ResearchCanvasFlow
1414from research_canvas .langgraph .agent import graph
15- from ag_ui_langgraph import add_langgraph_fastapi_endpoint
15+ from ag_ui_langgraph import add_langgraph_fastapi_endpoints
1616
1717# from contextlib import asynccontextmanager
1818# from langgraph.checkpoint.sqlite.aio import AsyncSqliteSaver
5959 ],
6060)
6161
62- add_langgraph_fastapi_endpoint (
62+ add_langgraph_fastapi_endpoints (
6363 app = app ,
6464 agent = LangGraphAGUIAgent (
6565 name = "research_agent" ,
6868 ),
6969 path = "/copilotkit/agents/research_agent"
7070)
71- add_langgraph_fastapi_endpoint (
71+ add_langgraph_fastapi_endpoints (
7272 app = app ,
7373 agent = LangGraphAGUIAgent (
7474 name = "research_agent_google_genai" ,
Original file line number Diff line number Diff line change 1111from fastapi import FastAPI
1212import uvicorn
1313from copilotkit import LangGraphAGUIAgent
14- from ag_ui_langgraph import add_langgraph_fastapi_endpoint
14+ from ag_ui_langgraph import add_langgraph_fastapi_endpoints
1515from sample_agent .agent import graph
1616
1717app = FastAPI ()
18- add_langgraph_fastapi_endpoint (
18+ add_langgraph_fastapi_endpoints (
1919 app = app ,
2020 agent = LangGraphAGUIAgent (
2121 name = "sample_agent" ,
You can’t perform that action at this time.
0 commit comments