pub struct Thread {Show 21 fields
pub id: ThreadId,
pub preview: String,
pub model_provider: String,
pub model: String,
pub selection_mode: Option<ModelSelectionMode>,
pub created_at: i64,
pub updated_at: i64,
pub status: ThreadStatus,
pub cwd: String,
pub workspace_id: Option<String>,
pub root_id: Option<String>,
pub name: Option<String>,
pub message_count: Option<u32>,
pub turns: Option<Vec<Turn>>,
pub usage: Option<ThreadUsageMetadata>,
pub tool_allowlist: Vec<String>,
pub developer_instructions: Option<String>,
pub external_tools: Vec<ToolSpec>,
pub runner: Option<ThreadRunnerParams>,
pub parent_thread_id: Option<ThreadId>,
pub workspace_fork: Option<WorkspaceFork>,
}Fields§
§id: ThreadId§preview: String§model_provider: String§model: String§selection_mode: Option<ModelSelectionMode>§created_at: i64§updated_at: i64§status: ThreadStatus§cwd: String§workspace_id: Option<String>§root_id: Option<String>§name: Option<String>§message_count: Option<u32>§turns: Option<Vec<Turn>>§usage: Option<ThreadUsageMetadata>§tool_allowlist: Vec<String>Per-thread tool filter applied on top of the runtime allowlist. Empty = no filtering.
developer_instructions: Option<String>Host-supplied instructions added to the developer slot of every turn’s inference request.
external_tools: Vec<ToolSpec>Host-executed tool specs advertised to the model on every turn of this thread. Calls pause
on thread/toolExecutionRequested until the client answers with tools/resolve.
runner: Option<ThreadRunnerParams>Remote-runner binding fixed at thread/start; absent = native coding tools execute locally. Lets hosts verify that a reused thread targets the intended runner workspace, since the binding never changes after creation. The destination config carries no secrets.
parent_thread_id: Option<ThreadId>Parent thread for conversation forks; absent for normal threads.
workspace_fork: Option<WorkspaceFork>Compact workspace-fork provenance for forked threads.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Thread
impl<'de> Deserialize<'de> for Thread
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
Auto Trait Implementations§
impl Freeze for Thread
impl RefUnwindSafe for Thread
impl Send for Thread
impl Sync for Thread
impl Unpin for Thread
impl UnsafeUnpin for Thread
impl UnwindSafe for Thread
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