Replies: 1 comment
-
|
Partial answer after looking at this course. To link-up to CopilotKit:
graph = create_agent(
model=_model,
middleware=[CopilotKitMiddleware()],
)
agent = LangGraphAGUIAgent(
graph=graph,
)
add_langgraph_fastapi_endpoint(app=app, agent=agent, path="/") |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Working on this issue I noticed that AG-UI payload Tools do not exploit the Human-in-the-loop feature of LangGraph (which is a faeture already supported by the ag-ui integration).
Current implementation
It seems that currently (as the official example also suggests):
Suggested implementation
But I am wondering why the design does not use the LangGraph Human-in-the-loop feature.
So the flow could be:
Question
It feels to me that using HITL is the natural way to handle tools from the AG-UI payload, so I'm wondering if someone can help me understand this design decision?
(One could build a middleware that binds tools at runtime and perform the interrupt for AG-UI tools)
Beta Was this translation helpful? Give feedback.
All reactions