-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to run backend in Langgraph cloud #76
Comments
Langgraph API reference in case it's useful: https://langchain-ai.github.io/langgraph/cloud/reference/api/api_ref.html |
Here is how I get streaming from the deployed Langgraph cloud backend in a different streamlit app I have ...
Where I add /runs/stream at the end of the deployment URL I get in Langgraph. Noting that this API is the same as presented by running langgraph CLI |
Hey @dividor - Thanks for writing this up and your investigation. I agree it would be useful to have this compatibility. I haven't personally played with LangGraph Cloud and don't have a great use case for it right now. Since the request body you shared looks different than the format used by agent-service-toolkit, I'd guess it will need some more changes and a universal compatibility may not be possible. My suggestion - you would probably need to make changes in You could try to get it working with If you or anyone else can get a roughly working version of the client posted as a PR, I could probably help from there with cleanup, further testing and inclusion 😄 Also if my situation changes maybe it'll become a priority for me in the future. |
Thanks Joshua, I realized after writing it that it's a bit out of the wheelhouse. I deployed to Azure which is a better option anyway. I'll have a think on the LangGraph cloud bit, but likely won't get to it so perhaps best to close this issue. Onwards and upwards! |
I love the FastAPI server, but I'd actually like to run the backend in LangGraph cloud, as this is quite convenient for rapid prototyping. Langgraph cloud is in beta, limited to one deployment, but would be cool to have it working for when they do open it up.
The good news is that the back runs nicely in Langraph cloud, I connected the repo and it picked up the langgraph.json nicely and just worked. I tested in Langgraph cloud, all fine and dandy. Yay!
Now I would like to connect the streamlit app to the cloud version. I can get it to authnticate, if I add
X-Api-Key
to the header inclient.py
...Then in my
.env
set ...AGENT_URL=https://
AUTH_SECRET=
I know it's at least authenticating, because previously I got a different error, but It's not quite working as I'm not sure I have the right URL path for the streamlit code ...
AGENT_URL=https://<MY DEPLOYMENT STUFF>.default.us.langgraph.app
AGENT_URL=https://<MY DEPLOYMENT STUFF>.default.us.langgraph.app/runs/
AGENT_URL=https://<MY DEPLOYMENT STUFF>.default.us.langgraph.app/runs/stream
I have another app - terrible, agent-service toolkit is MUCH better - which is able to call langgraph cloud from streamlit, so I know it can work.
Any thoughts please on what the URL should be, or if there is something else I could be doing?
Thanks!
The text was updated successfully, but these errors were encountered: