Get the state history of a thread.
This method calls POST /threads/{thread_id}/history.
aget_state_history(
self,
config: RunnableConfig,
*,
filter: dict[str, Any] | None = None,
before: RunnableConfig | None = None,
limit: int | None = None,
headers: dict[str, str] | None = None,
params: QueryParamTypes | None = None
) -> AsyncIterator[StateSnapshot]| Name | Type | Description |
|---|---|---|
config* | RunnableConfig | A |
filter | dict[str, Any] | None | Default: NoneMetadata to filter on. |
before | RunnableConfig | None | Default: NoneA |
limit | int | None | Default: NoneMax number of states to return. |
headers | dict[str, str] | None | Default: NoneOptional custom headers to include with the request. |
params | QueryParamTypes | None | Default: NoneOptional query parameters to include with the request. |