pub struct DelegateConfig {
pub name: String,
pub provider_kind: String,
pub provider: String,
pub model: String,
pub system_prompt: Option<String>,
pub api_key: Option<String>,
pub temperature: Option<f64>,
pub max_depth: usize,
pub agentic: bool,
pub allowed_tools: HashSet<String>,
pub max_iterations: usize,
pub privacy_boundary: String,
}Expand description
Configuration for a delegate sub-agent.
Fields§
§name: String§provider_kind: StringProvider kind string (e.g. "openrouter", "anthropic"). Used to
dispatch to the correct provider implementation via build_provider.
provider: StringResolved base URL for the provider API (e.g. "https://openrouter.ai/api/v1").
model: String§system_prompt: Option<String>§api_key: Option<String>§temperature: Option<f64>§max_depth: usize§agentic: bool§allowed_tools: HashSet<String>§max_iterations: usize§privacy_boundary: StringPrivacy boundary for this delegate agent (e.g. “local_only”, “encrypted_only”, “any”). Empty string means inherit from parent.
Trait Implementations§
Source§impl Clone for DelegateConfig
impl Clone for DelegateConfig
Source§fn clone(&self) -> DelegateConfig
fn clone(&self) -> DelegateConfig
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 moreSource§impl Debug for DelegateConfig
impl Debug for DelegateConfig
Source§impl Default for DelegateConfig
impl Default for DelegateConfig
Source§impl<'de> Deserialize<'de> for DelegateConfig
impl<'de> Deserialize<'de> for DelegateConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DelegateConfig
impl RefUnwindSafe for DelegateConfig
impl Send for DelegateConfig
impl Sync for DelegateConfig
impl Unpin for DelegateConfig
impl UnsafeUnpin for DelegateConfig
impl UnwindSafe for DelegateConfig
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