Updates the state of the graph with new values. Requires a checkpointer to be configured.
This method can be used for:
updateState(
inputConfig: LangGraphRunnableConfig,
values: unknown,
asNode: string | N
): Promise<RunnableConfig<Record<string, any>>>| Name | Type | Description |
|---|---|---|
inputConfig* | LangGraphRunnableConfig | Configuration for the update |
values* | unknown | The values to update the state with |
asNode | string | N | Optional node name to attribute the update to |