Update the state of a thread.
This method calls POST /threads/{thread_id}/state.
update_state(
self,
config: RunnableConfig,
values: dict[str, Any] | Any | None,
as_node: str | None = None,
*,
headers: dict[str, str] | None = None,
params: QueryParamTypes | None = None
) -> RunnableConfig