pub enum ThreadItem {
Show 20 variants
UserMessage(UserMessageThreadItem),
HookPrompt(HookPromptThreadItem),
AgentMessage(AgentMessageThreadItem),
FunctionCallOutput(FunctionCallOutputThreadItem),
Plan(PlanThreadItem),
Reasoning(ReasoningThreadItem),
CommandExecution(CommandExecutionThreadItem),
FileChange(FileChangeThreadItem),
McpToolCall(McpToolCallThreadItem),
DynamicToolCall(DynamicToolCallThreadItem),
CollabAgentToolCall(CollabAgentToolCallThreadItem),
SubAgentActivity(SubAgentActivityThreadItem),
WebSearch(WebSearchThreadItem),
ImageView(ImageViewThreadItem),
Sleep(SleepThreadItem),
ImageGeneration(ImageGenerationThreadItem),
EnteredReviewMode(EnteredReviewModeThreadItem),
ExitedReviewMode(ExitedReviewModeThreadItem),
ContextCompaction(ContextCompactionThreadItem),
Unknown(Value),
}Expand description
A thread item and its recorded lifecycle times. The payload stays flat on the wire.
Variants§
UserMessage(UserMessageThreadItem)
HookPrompt(HookPromptThreadItem)
AgentMessage(AgentMessageThreadItem)
FunctionCallOutput(FunctionCallOutputThreadItem)
Plan(PlanThreadItem)
EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of PlanDelta text.
Reasoning(ReasoningThreadItem)
CommandExecution(CommandExecutionThreadItem)
FileChange(FileChangeThreadItem)
McpToolCall(McpToolCallThreadItem)
DynamicToolCall(DynamicToolCallThreadItem)
CollabAgentToolCall(CollabAgentToolCallThreadItem)
SubAgentActivity(SubAgentActivityThreadItem)
WebSearch(WebSearchThreadItem)
ImageView(ImageViewThreadItem)
Sleep(SleepThreadItem)
Display item emitted by the interruptible clock.sleep tool.
ImageGeneration(ImageGenerationThreadItem)
Either inline generated-image data or its durable attachment-store identity.
File must remain first so rollouts written during the migration, which contain both an empty result and a fileId, retain the file reference when deserialized.
EnteredReviewMode(EnteredReviewModeThreadItem)
ExitedReviewMode(ExitedReviewModeThreadItem)
ContextCompaction(ContextCompactionThreadItem)
Unknown(Value)
A value this Codex version doesn’t know, or a known one whose body didn’t decode.
Trait Implementations§
Source§impl Clone for ThreadItem
impl Clone for ThreadItem
Source§impl Debug for ThreadItem
impl Debug for ThreadItem
Source§impl<'de> Deserialize<'de> for ThreadItem
impl<'de> Deserialize<'de> for ThreadItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ThreadItem
impl PartialEq for ThreadItem
Source§impl Serialize for ThreadItem
impl Serialize for ThreadItem
impl StructuralPartialEq for ThreadItem
Auto Trait Implementations§
impl Forget for ThreadItem
impl Freeze for ThreadItem
impl RefUnwindSafe for ThreadItem
impl Send for ThreadItem
impl Sync for ThreadItem
impl Unpin for ThreadItem
impl UnsafeUnpin for ThreadItem
impl UnwindSafe for ThreadItem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more