List all versions of an assistant.
get_versions(
self,
assistant_id: str,
metadata: Json = None,
limit: int = 10,
offset: int = 0,
*,
headers: Mapping[str, str] | None = None,
params: QueryParamTypes | None = None
) -> list[AssistantVersion]client = get_client(url="http://localhost:2024")
assistant_versions = await client.assistants.get_versions(
assistant_id="my_assistant_id"
)| Name | Type | Description |
|---|---|---|
assistant_id* | str | The assistant ID to get versions for. |
metadata | Json | Default: NoneMetadata to filter versions by. Exact match filter for each KV pair. |
limit | int | Default: 10The maximum number of versions to return. |
offset | int | Default: 0The number of versions 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. |