Skip to content

Commit ed76ffa

Browse files
committed
docs: pluralize add_langgraph_fastapi_endpoint due to [ag-ui-protocol/ag-ui/pull/701](ag-ui-protocol/ag-ui#701)
1 parent 1ca902c commit ed76ffa

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

docs/content/docs/langgraph/persistence/message-persistence.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ from fastapi import FastAPI
1414
from contextlib import asynccontextmanager
1515
from langgraph.checkpoint.postgres.aio import AsyncPostgresSaver
1616
from copilotkit import LangGraphAGUIAgent
17-
from ag_ui_langgraph import add_langgraph_fastapi_endpoint
17+
from ag_ui_langgraph import add_langgraph_fastapi_endpoints
1818

1919
graph = None
2020
@asynccontextmanager
@@ -31,7 +31,7 @@ async def lifespan(app: FastAPI):
3131

3232
app = FastAPI(lifespan=lifespan)
3333

34-
add_langgraph_fastapi_endpoint(
34+
add_langgraph_fastapi_endpoints(
3535
app=app,
3636
agent=LangGraphAGUIAgent(
3737
name="research_agent",

docs/content/docs/langgraph/troubleshooting/migrate-to-agui.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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",

docs/snippets/langgraph-platform-deployment-tabs.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

examples/coagents-research-canvas/agent/research_canvas/demo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from copilotkit.crewai import CrewAIAgent
1313
from research_canvas.crewai.agent import ResearchCanvasFlow
1414
from 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
@@ -59,7 +59,7 @@
5959
],
6060
)
6161

62-
add_langgraph_fastapi_endpoint(
62+
add_langgraph_fastapi_endpoints(
6363
app=app,
6464
agent=LangGraphAGUIAgent(
6565
name="research_agent",
@@ -68,7 +68,7 @@
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",

examples/coagents-starter/agent-py/sample_agent/demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
from fastapi import FastAPI
1212
import uvicorn
1313
from copilotkit import LangGraphAGUIAgent
14-
from ag_ui_langgraph import add_langgraph_fastapi_endpoint
14+
from ag_ui_langgraph import add_langgraph_fastapi_endpoints
1515
from sample_agent.agent import graph
1616

1717
app = FastAPI()
18-
add_langgraph_fastapi_endpoint(
18+
add_langgraph_fastapi_endpoints(
1919
app=app,
2020
agent=LangGraphAGUIAgent(
2121
name="sample_agent",

0 commit comments

Comments
 (0)