List runs.
list(
self,
thread_id: str,
*,
limit: int = 10,
offset: int = 0,
status: RunStatus | None = None,
select: builtins.list[RunSelectField] | None = None,
headers: Mapping[str, str] | None = None,
params: QueryParamTypes | None = None
) -> builtins.list[Run]client = get_sync_client(url="http://localhost:2024")
client.runs.list(
thread_id="thread_id",
limit=5,
offset=5,
)| Name | Type | Description |
|---|---|---|
thread_id* | str | The thread ID to list runs for. |
limit | int | Default: 10The maximum number of results to return. |
offset | int | Default: 0The number of results to skip. |
headers | Mapping[str, str] | None | Default: NoneOptional custom headers to include with the request. |
params | QueryParamTypes | None | Default: NoneOptional query parameters to include with the request. |