You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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" }'
The text was updated successfully, but these errors were encountered:
AeoRu5
changed the title
Image cannot support Generative UI
Official LangGraph API Server Image cannot support Generative UI
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 thegetLangGraphCommand
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" }'
The text was updated successfully, but these errors were encountered: