This repository was archived by the owner on Jul 29, 2025. It is now read-only.
-
I'm using LangGraph Server locally. In local LangGraph Studio all state fields are shown as required. Is there a way to set them as optional? Tried it with typing, but no success.
|
Beta Was this translation helpful? Give feedback.
Answered by
PaSchwarz
Jul 6, 2025
Replies: 1 comment
-
Found the solution by myself: use NotRequired from typing Example: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
PaSchwarz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found the solution by myself: use NotRequired from typing
Example:
class State(MessagesState): name: NotRequired[str]