how to add new endpoints in langgraph? or use fastapi for langgraph? #1762
Unanswered
junan-trustarc
asked this question in
Q&A
Replies: 1 comment
-
Yes using an api router within fastapi you can wrap your langgraph nodes (functions) as endpoints. Using a pydantic model you can add structured output from the called node and return a json response. I would typically do this in a sequential flow graph where the terminal node is responding to the request. On the other hand if you want a supervisor to orchestrate multiple react agents thats also possible. In that case the request will hit the supervisor which will route the request to the appropriate agent |
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.
-
I deployed to langgraph-cloud, I just need additional rest endpoints for different purpose.
since langgraph cloud exposed pre-defined langgraph endpoints only, is there anyway to add new endpoint?
or can we add pre-defined langgraph endpoints into just normal fast API ?
Beta Was this translation helpful? Give feedback.
All reactions