ReadonlyfieldsType declaration for node functions.
Use: typeof myState.Node to type node functions outside the graph builder.
Type declaration for the full state type.
Use: typeof myState.State
Type declaration for the update type.
Use: typeof myState.Update
Get all keys (channels + managed values).
Get the list of channel keys (excluding managed values).
Get the channel definitions for use with StateGraph. This converts the StateSchema fields into BaseChannel instances.
Get the JSON schema for the update/input type. All fields are optional in updates.
Get the JSON schema for the full state type. Used by Studio and API for schema introspection.
StaticisType guard to check if a value is a StateSchema instance.
The value to check.
True if the value is a StateSchema instance with the correct runtime tag.
Type guard to check if a value is a StateSchema instance.
The value to check.
True if the value is a StateSchema instance with the correct runtime tag.
StateSchema provides a unified API for defining LangGraph state schemas.
Example