ThreadListParams
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| CodexBaseModel codexed.models.base Base model for all Codex API models. |
â‹” Inheritance diagram¶
graph TD
3754865496["v2_protocol.ThreadListParams"]
3116041069["base.CodexBaseModel"]
3879467795["main.BaseModel"]
2751680898["builtins.object"]
3116041069 --> 3754865496
3879467795 --> 3116041069
2751680898 --> 3879467795
🛈 DocStrings¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 | |
ancestor_thread_id
class-attribute
instance-attribute
¶
Optional ancestor thread filter. Returns spawned descendants at any depth, excluding the ancestor itself. Mutually exclusive with parentThreadId.
archived
class-attribute
instance-attribute
¶
Optional archived filter; when set to true, only archived threads are returned. If false or null, only non-archived threads are returned.
attached_to_thread_id
class-attribute
instance-attribute
¶
Return only persistent threads attached to this thread, including empty threads. Mutually exclusive with parentThreadId and ancestorThreadId. Omitting this filter keeps attached threads hidden from ordinary listings.
current_account_only
class-attribute
instance-attribute
¶
Show local history visible to the current ChatGPT account. Defaults to false.
cursor
class-attribute
instance-attribute
¶
Opaque pagination cursor returned by a previous call.
cwd
class-attribute
instance-attribute
¶
Optional cwd filter or filters; when set, only threads whose session cwd exactly matches one of these paths are returned.
excluded_thread_ids
class-attribute
instance-attribute
¶
Thread IDs to exclude before applying the result limit. Up to 100 entries; invalid IDs or a larger list are rejected, never truncated. Send the same exclusions on each page. Omitted, null, or empty means no exclusions.
include_attached_threads
class-attribute
instance-attribute
¶
Include persistent threads attached to a parent when searching by title.
included_thread_ids
class-attribute
instance-attribute
¶
Restrict results to up to 100 thread IDs before pagination. Omit or send null for unrestricted results. An empty list matches nothing. Exclusions still apply. Repeat the same IDs on each page. The local store uses indexed metadata for this filter.
limit
class-attribute
instance-attribute
¶
Optional page size; defaults to a reasonable server-side value.
model_providers
class-attribute
instance-attribute
¶
Optional provider filter; when set, only sessions recorded under these providers are returned. When present but empty, includes all providers.
originators
class-attribute
instance-attribute
¶
Optional originator allowlist, matching any supplied value exactly. Supported by hosted backends only; the local app-server rejects a nonempty list. Omitted or empty lists leave originators unrestricted.
parent_thread_id
class-attribute
instance-attribute
¶
Optional direct parent thread filter. Mutually exclusive with ancestorThreadId.
project_id
class-attribute
instance-attribute
¶
Omit to include every project, set to null for unassigned threads, or provide a project ID to return only threads in that project.
search_term
class-attribute
instance-attribute
¶
Optional substring filter for the extracted thread title.
section_id
class-attribute
instance-attribute
¶
Omit to include every section, set to null for unsectioned threads, or provide a section ID to return only threads in that section.
sort_direction
class-attribute
instance-attribute
¶
Optional sort direction; defaults to descending (newest first).
sort_key
class-attribute
instance-attribute
¶
Optional sort key; defaults to created_at.
source_kinds
class-attribute
instance-attribute
¶
Optional source filter; when set, only sessions from these source kinds are returned. When omitted or empty, defaults to interactive sources.
use_state_db_only
class-attribute
instance-attribute
¶
If true, the local store returns indexed metadata without scanning JSONL rollouts for repairs. Requests with includedThreadIds always use indexed metadata.