pub struct TaskOverrides {
pub model: Option<String>,
pub permission_mode: Option<PermissionMode>,
pub max_turns: Option<u32>,
pub system_prompt: Option<String>,
pub allowed_tools: Option<Vec<String>>,
pub disallowed_tools: Option<Vec<String>>,
pub tools: Option<Vec<String>>,
pub mcp_servers: Option<HashMap<String, Value>>,
pub effort: Option<Effort>,
pub fallback_model: Option<String>,
pub json_schema: Option<Value>,
pub max_budget_usd: Option<f64>,
}Expand description
Per-task configuration overrides.
Applied on top of the slot config for a single task execution. Unlike
SlotConfig, this struct contains only execution parameters — it has
no identity fields (name, role, description) or slot lifecycle settings.
Fields§
§model: Option<String>Override model for this task.
permission_mode: Option<PermissionMode>Override permission mode for this task.
max_turns: Option<u32>Override max turns for this task.
system_prompt: Option<String>Override system prompt for this task.
allowed_tools: Option<Vec<String>>Additional allowed tools for this task (merged with global and slot).
disallowed_tools: Option<Vec<String>>Tools to explicitly disallow for this task.
tools: Option<Vec<String>>Built-in tool selection for this task (e.g. “Bash”, “Edit”, “Read”).
mcp_servers: Option<HashMap<String, Value>>Additional MCP servers for this task (merged with global and slot).
effort: Option<Effort>Override effort level for this task.
fallback_model: Option<String>Override fallback model for this task.
json_schema: Option<Value>JSON schema for structured output validation.
max_budget_usd: Option<f64>Maximum budget cap for this task in USD.
Trait Implementations§
Source§impl Clone for TaskOverrides
impl Clone for TaskOverrides
Source§fn clone(&self) -> TaskOverrides
fn clone(&self) -> TaskOverrides
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more