Skip to content

Commit f04588d

Browse files
authored
Merge pull request #311 from ag-ui-protocol/fix/agui-fastapi-langgraph-health-endpoint
fix: add health endpoint to agui langgraph fastapi
2 parents e676c75 + 4b4b14c commit f04588d

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

typescript-sdk/integrations/langgraph/python/ag_ui_langgraph/endpoint.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,14 @@ async def event_generator():
2424
return StreamingResponse(
2525
event_generator(),
2626
media_type=encoder.get_content_type()
27-
)
27+
)
28+
29+
@app.get(f"{path}/health")
30+
def health():
31+
"""Health check."""
32+
return {
33+
"status": "ok",
34+
"agent": {
35+
"name": agent.name,
36+
}
37+
}

typescript-sdk/integrations/langgraph/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "ag-ui-langgraph"
3-
version = "0.0.6"
3+
version = "0.0.8"
44
description = "Implementation of the AG-UI protocol for LangGraph."
55
authors = ["Ran Shem Tov <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)