pub struct ThreadMetadata {Show 21 fields
pub thread_id: String,
pub title: Option<String>,
pub workspace: String,
pub workspace_id: Option<String>,
pub root_id: Option<String>,
pub provider: Option<String>,
pub model: Option<String>,
pub selection_mode: Option<ModelSelectionMode>,
pub tool_allowlist: Vec<String>,
pub developer_instructions: Option<String>,
pub external_tools: Vec<ToolSpec>,
pub runner_destination: Option<RunnerDestination>,
pub runner_state: Option<RunnerSessionState>,
pub runner_binding: Option<ThreadRunnerBinding>,
pub created_at: OffsetDateTime,
pub updated_at: OffsetDateTime,
pub message_count: u32,
pub usage: Option<ThreadUsageMetadata>,
pub parent_thread_id: Option<String>,
pub forked_from_turn_id: Option<String>,
pub workspace_fork: Option<WorkspaceFork>,
}Fields§
§thread_id: String§title: Option<String>§workspace: String§workspace_id: Option<String>§root_id: Option<String>§provider: Option<String>§model: Option<String>§selection_mode: Option<ModelSelectionMode>§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 to
these tools pause on a thread/toolExecutionRequested notification until the host client
answers with tools/resolve.
runner_destination: Option<RunnerDestination>§runner_state: Option<RunnerSessionState>§runner_binding: Option<ThreadRunnerBinding>Set when the thread explicitly selected a remote runner at creation. Native coding tools for the thread route through this runner workspace; absent = local tool execution even when a runtime-level runner destination is configured.
created_at: OffsetDateTime§updated_at: OffsetDateTime§message_count: u32§usage: Option<ThreadUsageMetadata>§parent_thread_id: Option<String>Parent thread this conversation was forked from. Absent for normal threads.
forked_from_turn_id: Option<String>Parent turn the fork branched at, when the fork targeted a specific turn.
workspace_fork: Option<WorkspaceFork>Provider-neutral workspace-fork provenance for threads whose workspace is a fork of another workspace (roadmap phase 81; the phase-90 Git-worktree MVP shape was folded into this canonical type).
Trait Implementations§
Source§impl Clone for ThreadMetadata
impl Clone for ThreadMetadata
Source§fn clone(&self) -> ThreadMetadata
fn clone(&self) -> ThreadMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ThreadMetadata
impl Debug for ThreadMetadata
Source§impl<'de> Deserialize<'de> for ThreadMetadata
impl<'de> Deserialize<'de> for ThreadMetadata
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThreadMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThreadMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ThreadMetadata
impl PartialEq for ThreadMetadata
Source§fn eq(&self, other: &ThreadMetadata) -> bool
fn eq(&self, other: &ThreadMetadata) -> bool
self and other values to be equal, and is used by ==.