Skip to main content

ThreadItem

Enum ThreadItem 

Source
pub enum ThreadItem {
Show 16 variants UserMessage { content: Vec<UserInput>, id: String, }, HookPrompt { fragments: Vec<HookPromptFragment>, id: String, }, AgentMessage { id: String, memory_citation: Option<MemoryCitation>, phase: Option<MessagePhase>, text: String, }, Plan { id: String, text: String, }, Reasoning { content: Option<Vec<String>>, id: String, summary: Option<Vec<String>>, }, CommandExecution { aggregated_output: Option<String>, command: String, command_actions: Vec<CommandAction>, cwd: Value, duration_ms: Option<i64>, exit_code: Option<i64>, id: String, process_id: Option<String>, source: Option<Value>, status: CommandExecutionStatus, }, FileChange { changes: Vec<FileUpdateChange>, id: String, status: PatchApplyStatus, }, McpToolCall { arguments: Value, duration_ms: Option<i64>, error: Option<McpToolCallError>, id: String, mcp_app_resource_uri: Option<String>, result: Option<McpToolCallResult>, server: String, status: McpToolCallStatus, tool: String, }, DynamicToolCall { arguments: Value, content_items: Option<Vec<DynamicToolCallOutputContentItem>>, duration_ms: Option<i64>, id: String, namespace: Option<String>, status: DynamicToolCallStatus, success: Option<bool>, tool: String, }, CollabAgentToolCall { agents_states: BTreeMap<String, CollabAgentState>, id: String, model: Option<String>, prompt: Option<String>, reasoning_effort: Option<ReasoningEffort>, receiver_thread_ids: Vec<String>, sender_thread_id: String, status: Value, tool: Value, }, WebSearch { action: Option<WebSearchAction>, id: String, query: String, }, ImageView { id: String, path: AbsolutePathBuf, }, ImageGeneration { id: String, result: String, revised_prompt: Option<String>, saved_path: Option<AbsolutePathBuf>, status: String, }, EnteredReviewMode { id: String, review: String, }, ExitedReviewMode { id: String, review: String, }, ContextCompaction { id: String, },
}

Variants§

§

UserMessage

Fields

§content: Vec<UserInput>
§

HookPrompt

Fields

§

AgentMessage

Fields

§memory_citation: Option<MemoryCitation>
§text: String
§

Plan

Fields

§text: String
§

Reasoning

Fields

§content: Option<Vec<String>>
§summary: Option<Vec<String>>
§

CommandExecution

Fields

§aggregated_output: Option<String>
§command: String
§command_actions: Vec<CommandAction>
§cwd: Value
§duration_ms: Option<i64>
§exit_code: Option<i64>
§process_id: Option<String>
§source: Option<Value>
§

FileChange

§

McpToolCall

Fields

§arguments: Value
§duration_ms: Option<i64>
§mcp_app_resource_uri: Option<String>
§server: String
§tool: String
§

DynamicToolCall

Fields

§arguments: Value
§duration_ms: Option<i64>
§namespace: Option<String>
§success: Option<bool>
§tool: String
§

CollabAgentToolCall

Fields

§prompt: Option<String>
§reasoning_effort: Option<ReasoningEffort>
§receiver_thread_ids: Vec<String>
§sender_thread_id: String
§status: Value
§tool: Value
§

WebSearch

Fields

§query: String
§

ImageView

§

ImageGeneration

Fields

§result: String
§revised_prompt: Option<String>
§status: String
§

EnteredReviewMode

Fields

§review: String
§

ExitedReviewMode

Fields

§review: String
§

ContextCompaction

Fields

Trait Implementations§

Source§

impl Clone for ThreadItem

Source§

fn clone(&self) -> ThreadItem

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ThreadItem

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ThreadItem

Source§

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

Source§

fn eq(&self, other: &ThreadItem) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ThreadItem

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ThreadItem

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,