tinker.types.SessionSearchRequest
class tinker.types.SessionSearchRequest(StrictBase)
A session search. Results are restricted to projects the caller may list.
Fields:
- session_id (str | None) – Exact session ID to match; None searches every session. With
display_name, a session matching either one matches - project_ids (list[str] | None) – Projects to search; None searches every listable project. Naming a project the caller cannot list is an error
- user_metadata (dict[str, str]) – Exact user_metadata key/value matches; every pair must hold
- display_name (str | None) – Case-insensitive substring match on the display name; with several
words, each must appear somewhere in the name. With
session_id, a session matching either one matches - owner (SearchOwner) – Whose sessions to search; defaults to the caller's own
- statuses (list[SessionStatusQuery] | None) – Match any listed status; None matches every status
- limit (int) – Page size, 1 to 200
- cursor (SessionSearchCursor | None) –
next_cursorof the previous page; None for the first page