Update the state of the graph with the given values, as if they came from
node as_node. If as_node is not provided, it will be set to the last node
that updated the state, if not ambiguous.
update_state(
self,
config: RunnableConfig,
values: dict[str, Any] | Any | None,
as_node: str | None = None,
task_id: str | None = None
) -> RunnableConfig