pub struct SpawnConfig {
pub role: AgentRole,
pub system_prompt: Option<String>,
pub tool_names: Option<Vec<String>>,
pub cwd: Option<PathBuf>,
pub task: String,
pub max_steps: usize,
pub writable_roots: Option<Vec<PathBuf>>,
}Expand description
Configuration for spawning a sub-agent.
Fields§
§role: AgentRoleRole determines default model/tools.
system_prompt: Option<String>Custom system prompt (if None, use role default).
tool_names: Option<Vec<String>>Tool names to make available (if None, use role defaults).
cwd: Option<PathBuf>Working directory (if None, inherit from parent).
task: StringInitial task description for the sub-agent.
max_steps: usizeMax steps for the sub-agent loop.
writable_roots: Option<Vec<PathBuf>>Writable roots for sandbox (if None, inherit from parent).
Implementations§
Auto Trait Implementations§
impl Freeze for SpawnConfig
impl RefUnwindSafe for SpawnConfig
impl Send for SpawnConfig
impl Sync for SpawnConfig
impl Unpin for SpawnConfig
impl UnsafeUnpin for SpawnConfig
impl UnwindSafe for SpawnConfig
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