pub struct TaskRequest {Show 13 fields
pub description: String,
pub subagent_type: Option<String>,
pub profile: Option<String>,
pub model: Option<String>,
pub model_strength: Option<String>,
pub thinking: Option<String>,
pub worktree: bool,
pub allowed_tools: Option<Vec<String>>,
pub max_depth: Option<u32>,
pub token_budget: Option<u64>,
pub response_schema: Option<Value>,
pub label: Option<String>,
pub phase: Option<String>,
}Expand description
One task() invocation, fully resolved and validated on the VM side.
Field semantics mirror the agent tool’s spawn options; profile is the
Fleet roster profile token, already trimmed + lowercased and checked
against the same token rule as crates/workflow’s leaf profiles. Roster
membership is resolved by the driver (tui) at spawn time — this crate
never sees the saved Fleet roster.
Fields§
§description: StringThe child prompt (JS description or prompt; required).
subagent_type: Option<String>Subagent role (JS subagentType or type); None lets the driver
apply its default (general).
profile: Option<String>Fleet profile token, normalized (trimmed, lowercased) and validated.
model: Option<String>Explicit model override; always wins over model_strength.
model_strength: Option<String>Relative model strength (same/faster, plus driver-side aliases).
thinking: Option<String>Reasoning effort (inherit/off/low/medium/high/max).
worktree: boolRun the child in a fresh git worktree for parallel edits.
allowed_tools: Option<Vec<String>>Explicit tool allowlist; required by the driver for custom roles.
max_depth: Option<u32>Per-call spawn-depth override (driver clamps to its ceiling).
token_budget: Option<u64>Explicit token budget: forks an isolated pool on the driver side. Omit it so the child inherits (and debits) the shared run pool.
response_schema: Option<Value>JSON schema the reply must satisfy; validated in the VM after the
driver returns the raw text (see crate docs for decode rules).
label: Option<String>Short human label for progress surfaces.
phase: Option<String>Phase name this task belongs to, for progress grouping.
Trait Implementations§
Source§impl Clone for TaskRequest
impl Clone for TaskRequest
Source§fn clone(&self) -> TaskRequest
fn clone(&self) -> TaskRequest
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 TaskRequest
impl Debug for TaskRequest
Source§impl<'de> Deserialize<'de> for TaskRequest
impl<'de> Deserialize<'de> for TaskRequest
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>,
Source§impl PartialEq for TaskRequest
impl PartialEq for TaskRequest
Source§fn eq(&self, other: &TaskRequest) -> bool
fn eq(&self, other: &TaskRequest) -> bool
self and other values to be equal, and is used by ==.