Skip to content

Commit ad6fa8b

Browse files
committed
fix: add health endpoint to agui langgraph fastapi
1 parent e7067c3 commit ad6fa8b

File tree

1 file changed

+11
-1
lines changed
  • typescript-sdk/integrations/langgraph/python/ag_ui_langgraph

1 file changed

+11
-1
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+
}

0 commit comments

Comments
 (0)