Unable to serialize unknown type: <class 'langgraph.types.Send'> #331
Unanswered
higuhigu-lb
asked this question in
Q&A
Replies: 1 comment
-
|
similar discussion |
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 am building a graph that uses the
SendAPI for interruption and resumption. I've exposed this graph via a FastAPI endpoint and am usingag_ui_langgraphto visualize and interact with it.However, when I access the UI, I encounter a
PydanticSerializationErroron the backend. The error message isUnable to serialize unknown type: <class 'langgraph.types.Send'>.It seems the SSE encoder within
ag_uicannot handle theSendobject when processing the event stream.Here is the anonymized stack trace:
Is there a recommended way or a known workaround to handle the serialization of the
Sendtype when using it withag_ui_langgraph?Any help or guidance would be greatly appreciated. Thank you!
Environment:
Beta Was this translation helpful? Give feedback.
All reactions