pub struct SpawnSpec {
pub prompt: String,
pub context: ContextStrategy,
pub tool_access: ToolAccessPolicy,
pub budget: BudgetLimits,
pub allow_spawn: bool,
pub system_prompt: Option<String>,
}Expand description
Specification for spawning a new delegated branch
Fields§
§prompt: StringThe prompt/task for the delegated branch
context: ContextStrategyHow much context the delegated branch receives
tool_access: ToolAccessPolicyWhich tools the delegated branch can access
budget: BudgetLimitsBudget allocation for the delegated branch
allow_spawn: boolIf false, the delegated branch cannot spawn/fork further
system_prompt: Option<String>System prompt override (None = inherit from parent)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SpawnSpec
impl<'de> Deserialize<'de> for SpawnSpec
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 SpawnSpec
impl RefUnwindSafe for SpawnSpec
impl Send for SpawnSpec
impl Sync for SpawnSpec
impl Unpin for SpawnSpec
impl UnsafeUnpin for SpawnSpec
impl UnwindSafe for SpawnSpec
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