pub struct ResolvedConfig {
pub model: Option<String>,
pub permission_mode: PermissionMode,
pub max_turns: Option<u32>,
pub system_prompt: Option<String>,
pub allowed_tools: Vec<String>,
pub effort: Option<Effort>,
pub mcp_servers: HashMap<String, Value>,
pub strict_mcp_config: bool,
}Expand description
Resolved configuration for a single task execution.
Produced by merging global -> slot -> task config layers.
Fields§
§model: Option<String>§permission_mode: PermissionMode§max_turns: Option<u32>§system_prompt: Option<String>§allowed_tools: Vec<String>§effort: Option<Effort>§mcp_servers: HashMap<String, Value>Merged MCP servers from global + slot + task layers. Later layers override earlier layers by server name.
strict_mcp_config: boolWhether to pass --strict-mcp-config to the CLI.
Implementations§
Source§impl ResolvedConfig
impl ResolvedConfig
Sourcepub fn resolve(
global: &PoolConfig,
slot: &SlotConfig,
task: Option<&SlotConfig>,
) -> Self
pub fn resolve( global: &PoolConfig, slot: &SlotConfig, task: Option<&SlotConfig>, ) -> Self
Resolve configuration by layering global, slot, and task configs.
Later layers override earlier layers for scalar fields. Map/list fields (allowed_tools, mcp_servers) are merged additively, with later layers overriding same-named entries.
Trait Implementations§
Source§impl Clone for ResolvedConfig
impl Clone for ResolvedConfig
Source§fn clone(&self) -> ResolvedConfig
fn clone(&self) -> ResolvedConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResolvedConfig
impl RefUnwindSafe for ResolvedConfig
impl Send for ResolvedConfig
impl Sync for ResolvedConfig
impl Unpin for ResolvedConfig
impl UnsafeUnpin for ResolvedConfig
impl UnwindSafe for ResolvedConfig
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