pub struct TurnSpec {Show 23 fields
pub profile_constitution: Option<Value>,
pub max_output_tokens: Option<NonZeroU32>,
pub content: String,
pub images: Vec<RuntimeImageInput>,
pub mode: String,
pub model: Option<String>,
pub model_provider: Option<String>,
pub allowed_tools: Option<Vec<String>>,
pub dynamic_tools: Vec<DynamicToolSpec>,
pub provenance: String,
pub compaction: Option<Box<CompactionPolicy>>,
pub goal_objective: Option<String>,
pub goal_token_budget: Option<u32>,
pub goal_status: String,
pub reasoning_effort: Option<String>,
pub reasoning_effort_auto: bool,
pub auto_model: bool,
pub allow_shell: bool,
pub trust_mode: bool,
pub auto_approve: bool,
pub approval_mode: String,
pub translation_enabled: bool,
pub verbosity: Option<String>,
}Expand description
Per-turn authority payload carried by Op::SendMessage. Serializable
twin of crates/tui/src/core/ops::TurnSpec; extracted from the enum arm so
new per-turn fields accrete here instead of widening the variant. The
SendMessage(TurnSpec) newtype keeps the internally-tagged wire shape
byte-identical: {"kind":"send_message", ...fields}.
Fields§
§profile_constitution: Option<Value>§max_output_tokens: Option<NonZeroU32>§content: String§images: Vec<RuntimeImageInput>§mode: StringEffective mode for this turn ("plan" | "agent" | "operate" etc).
model: Option<String>Optional explicit route/model the caller resolved already (mirrors
ResolvedRuntimeRoute in crates_tui::route_runtime). None means
“use the thread’s current route”.
model_provider: Option<String>§allowed_tools: Option<Vec<String>>Tool restriction from slash-command frontmatter.
dynamic_tools: Vec<DynamicToolSpec>Runtime-supplied dynamic tools for this turn only.
provenance: StringStructural input provenance — only external_user may inherit
YOLO/auto-approval authority (mirrors UserInputProvenance).
compaction: Option<Box<CompactionPolicy>>Compaction policy carried atomically with the route receipt. Boxed only to keep the enum small; the wire shape is unchanged.
goal_objective: Option<String>§goal_token_budget: Option<u32>§goal_status: Stringactive | paused | complete | blocked.
reasoning_effort: Option<String>"off" | "low" | "medium" | "high" | "max"; None = provider default.
reasoning_effort_auto: bool§auto_model: bool§allow_shell: bool§trust_mode: bool§auto_approve: bool§approval_mode: Stringauto | bypass | suggest | never.
translation_enabled: bool§verbosity: Option<String>