Optional
configSchema: _INTERNAL_ANNOTATION_ROOT<C>Internal
_configUsed only for typing.
Internal
_inputInternal
_outputInternal
_schemaInternal
_schemaMap schemas to managed values
Optional
entryOptional
__namedParameters: { Optional
checkpointer?: false | BaseCheckpointSaver<number>Optional
interruptOptional
interruptOptional
store?: BaseStoreuse addEdge(START, key)
instead
use addEdge(key, END)
instead
Protected
warn
A graph whose nodes communicate by reading and writing to a shared state. Each node takes a defined
State
as input and returns aPartial<State>
.Each state key can optionally be annotated with a reducer function that will be used to aggregate the values of that key received from multiple nodes. The signature of a reducer function is (left: Value, right: UpdateValue) => Value.
See Annotation for more on defining state.
After adding nodes and edges to your graph, you must call
.compile()
on it before you can use it.Example