thread_item
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| BaseThreadItem codexed.models.thread_item Base class for thread items. |
||
| McpToolCallResult codexed.models.thread_item MCP tool call result. |
||
| ThreadItemAgentMessage codexed.models.thread_item Agent message item. |
||
| ThreadItemCollabAgentToolCall codexed.models.thread_item Collab agent tool call item. |
||
| ThreadItemCommandExecution codexed.models.thread_item Command execution item. |
||
| ThreadItemContextCompaction codexed.models.thread_item Context compaction item. |
||
| ThreadItemDynamicToolCall codexed.models.thread_item Dynamic tool call item. |
||
| ThreadItemEnteredReviewMode codexed.models.thread_item Entered review mode item. |
||
| ThreadItemExitedReviewMode codexed.models.thread_item Exited review mode item. |
||
| ThreadItemFileChange codexed.models.thread_item File change item. |
||
| ThreadItemFunctionCallOutput codexed.models.thread_item Output of a function call. |
||
| ThreadItemHookPrompt codexed.models.thread_item Prompt injected by a hook. |
||
| ThreadItemImageGeneration codexed.models.thread_item Image generation item. |
||
| ThreadItemImageView codexed.models.thread_item Image view item. |
||
| ThreadItemMcpToolCall codexed.models.thread_item MCP tool call item. |
||
| ThreadItemPlan codexed.models.thread_item Plan item. |
||
| ThreadItemReasoning codexed.models.thread_item Reasoning item. |
||
| ThreadItemSleep codexed.models.thread_item Sleep item. |
||
| ThreadItemSubAgentActivity codexed.models.thread_item Activity of a sub-agent. |
||
| ThreadItemUserMessage codexed.models.thread_item User message item. |
||
| ThreadItemWebSearch codexed.models.thread_item Web search item. |
🛈 DocStrings¶
BaseThreadItem
¶
Bases: CodexBaseModel
Base class for thread items.
Source code in src/codexed/models/thread_item.py
completed_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when this item lifecycle completed.
inferred_arguments
property
¶
Best-effort reconstruction of tool-call-like arguments.
Returns a dict for tool-like items, None for non-tool items.
started_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when this item lifecycle started.
McpToolCallResult
¶
Bases: CodexBaseModel
MCP tool call result.
Source code in src/codexed/models/thread_item.py
meta
class-attribute
instance-attribute
¶
MCP _meta field of the tool result.
ThreadItemAgentMessage
¶
Bases: BaseThreadItem
Agent message item.
Source code in src/codexed/models/thread_item.py
ThreadItemCollabAgentToolCall
¶
Bases: BaseThreadItem
Collab agent tool call item.
Source code in src/codexed/models/thread_item.py
ThreadItemCommandExecution
¶
Bases: BaseThreadItem
Command execution item.
Source code in src/codexed/models/thread_item.py
ThreadItemContextCompaction
¶
ThreadItemDynamicToolCall
¶
Bases: BaseThreadItem
Dynamic tool call item.
Source code in src/codexed/models/thread_item.py
ThreadItemEnteredReviewMode
¶
ThreadItemExitedReviewMode
¶
ThreadItemFileChange
¶
Bases: BaseThreadItem
File change item.
Source code in src/codexed/models/thread_item.py
ThreadItemFunctionCallOutput
¶
ThreadItemHookPrompt
¶
ThreadItemImageGeneration
¶
Bases: BaseThreadItem
Image generation item.
Source code in src/codexed/models/thread_item.py
ThreadItemImageView
¶
Bases: BaseThreadItem
Image view item.
Source code in src/codexed/models/thread_item.py
ThreadItemMcpToolCall
¶
Bases: BaseThreadItem
MCP tool call item.
Source code in src/codexed/models/thread_item.py
ThreadItemPlan
¶
ThreadItemReasoning
¶
ThreadItemSleep
¶
ThreadItemSubAgentActivity
¶
ThreadItemUserMessage
¶
ThreadItemWebSearch
¶
Bases: BaseThreadItem
Web search item.