pub struct DelegateConfig {Show 15 fields
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,
pub max_tokens: u64,
pub max_cost_microdollars: u64,
pub system_prompt_hash: Option<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.
max_tokens: u64Maximum token budget for this sub-agent (0 = inherit from parent or unlimited).
max_cost_microdollars: u64Maximum cost budget in micro-dollars for this sub-agent (0 = inherit from parent or unlimited).
system_prompt_hash: Option<String>HMAC-SHA256 hex digest of the system prompt, computed by the parent
agent at delegation time. When present, validate_delegation verifies
the prompt has not been tampered with.
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