Skip to content

Official LangGraph API Server Image cannot support Generative UI #42

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

Open
AeoRu5 opened this issue Apr 3, 2025 · 0 comments
Open

Official LangGraph API Server Image cannot support Generative UI #42

AeoRu5 opened this issue Apr 3, 2025 · 0 comments

Comments

@AeoRu5
Copy link

AeoRu5 commented Apr 3, 2025

Target Image: https://hub.docker.com/r/langchain/langgraphjs-api
The official image encounters the following error when processing requests with a command:
{ "error": "EmptyInputError", "message": "Received empty Command input" }
The root cause lies in the dynamically generated first argument of the graph.streamEvents call: kwargs.command != null ? getLangGraphCommand(kwargs.command) : (kwargs.input ?? null). Although the execution enters the getLangGraphCommand function, it fails to retrieve the correct output. This issue might be caused by the API service being started with Python instead of JavaScript. Hoping for a fix.
Here's the translated request example:
curl --location 'http://localhost:8123/threads/096e0078-39bb-44f7-beb1-03589b7b09d9/runs/stream' \ --header 'Content-Type: application/json' \ --data '{ "input": {}, "command": { "update": { "messages": [ { "type": "tool", "tool_call_id": "call_0_8d22cf0c-787f-4c7f-88bb-61cad1796a6d", "id": "do-not-render-c5827f4d-a871-489c-adb5-10ae5b51635e", "name": "book-accommodation", "content": "{\"accommodation\":{\"id\":\"aaf7f591-eb93-42a7-9c91-fc3f52931da4\",\"name\":\"9412 Garnet Key\",\"price\":953,\"rating\":4.67,\"city\":\"New York\",\"image\":\"https://a0.muscache.com/im/pictures/prohost-api/Hosting-50345540/original/f8e911bb-8021-4edd-aca4-913d6f41fc6f.jpeg?im_w=720&im_format=avif\"},\"tripDetails\":{\"startDate\":\"2025-05-01T10:12:39.173Z\",\"endDate\":\"2025-05-08T10:12:39.173Z\",\"numberOfGuests\":2,\"location\":\"New York\"}}" }, { "type": "human", "content": "Booked 9412 Garnet Key for 2." } ] }, "goto": "generalInput" }, "stream_mode": [ "messages-tuple", "values", "custom" ], "assistant_id": "agent", "checkpoint": { "checkpoint_id": "1f010743-568d-6980-8002-1e5f10a22362", "checkpoint_ns": "" }, "on_disconnect": "cancel" }'

@AeoRu5 AeoRu5 changed the title Image cannot support Generative UI Official LangGraph API Server Image cannot support Generative UI Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant