LangGraph Studio + LangSmith: Support for Pydantic-based State in LangGraph #4753
Unanswered
jaroslav-bellus
asked this question in
Q&A
Replies: 2 comments
-
Also ran into this and was very surprised. I believe it has to be a bug. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have a similar issue, not only with interrupts but with the regular run as well. Are you able to use LangGraph Studio when using nested Pydantic models as the state? |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Pydantic models to define the state in LangGraph (instead of TypedDict). While this works fine generally, I'm running into an issue when using interrupts in LangGraph Studio (integrated with LangSmith).
It seems that when an interrupt occurs, the state is deserialized back into a dictionary, and the Pydantic structure is lost. This causes problems when the graph resumes, since it's expecting a Pydantic model, not a plain dict.
Specifically:
Any insights or pointers to documentation would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions