List threads and fetch the runs for each thread.
list_threads(
self,
*,
project_id: Optional[ID_TYPE] = None,
project_name: Optional[str] = None,
limit: Optional[int] = None,
offset: int = 0,
filter: Optional[str] = None,
start_time: Optional[datetime.datetime] = None
) -> list[ListThreadsItem]| Name | Type | Description |
|---|---|---|
project_id | Optional[ID_TYPE] | Default: NoneThe project (session) id. |
project_name | Optional[str] | Default: NoneThe project name (alternative to project_id). |
limit | Optional[int] | Default: NoneMaximum number of threads to return. Default None (no limit). |
offset | int | Default: 0Pagination offset for threads. Default 0. |
filter | Optional[str] | Default: NoneOptional filter for threads and runs. |
start_time | Optional[datetime.datetime] | Default: NoneOnly include runs from this time. Default: 1 day ago. |