Thread
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| CodexBaseModel codexed.models.base Base model for all Codex API models. |
⋔ Inheritance diagram¶
graph TD
3916687912["misc.Thread"]
3116041069["base.CodexBaseModel"]
3879467795["main.BaseModel"]
2751680898["builtins.object"]
3116041069 --> 3916687912
3879467795 --> 3116041069
2751680898 --> 3879467795
🛈 DocStrings¶
Bases: CodexBaseModel
Source code in src/codexed/models/misc.py
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 | |
agent_nickname
class-attribute
instance-attribute
¶
Optional random unique nickname assigned to an AgentControl-spawned sub-agent.
agent_role
class-attribute
instance-attribute
¶
Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.
created_at
instance-attribute
¶
Unix timestamp (in seconds) when the thread was created.
ephemeral
instance-attribute
¶
Whether the thread is ephemeral and should not be materialized on disk.
forked_from_id
class-attribute
instance-attribute
¶
Source thread id when this thread was created by forking another thread.
git_info
class-attribute
instance-attribute
¶
Optional Git metadata captured when the thread was created.
model_provider
instance-attribute
¶
Model provider used for this thread (for example, 'openai').
name
class-attribute
instance-attribute
¶
Optional user-facing thread title.
path
class-attribute
instance-attribute
¶
[UNSTABLE] Path to the thread on disk.
preview
instance-attribute
¶
Usually the first user message in the thread, if available.
recency_at
class-attribute
instance-attribute
¶
Unix timestamp (in seconds) used to order threads by recency.
source
instance-attribute
¶
Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).
turns
instance-attribute
¶
turns: list[Turn]
Only populated on thread/resume, thread/fork, and thread/read
(when includeTurns is true) responses.
For all other responses and notifications returning a Thread,
the turns field will be an empty list.
updated_at
instance-attribute
¶
Unix timestamp (in seconds) when the thread was last updated.