Pydantic BaseModel type for updates using Command #2756
larsenweigle
started this conversation in
Ideas
Replies: 0 comments
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 wasn’t sure if this should really be considered a “new feature” since it is such a small update, but I think it would be nice to allow users to pass updates that are of type
BaseModel
in aCommand
.In most of my projects involving LangGraph, I prefer to use Pydantic
BaseModel
states for data validation and cleaner code. I find the code much more readable when I can pass these custom states in theupdate
attribute of the newCommand
class.I’ve already made a draft PR here.
Beta Was this translation helpful? Give feedback.
All reactions