pub struct AgentDef {
pub description: String,
pub system_prompt: Option<String>,
pub model: Option<String>,
}Expand description
A named subagent the task tool can spawn (its own role prompt + optional
model), registered via OpenHarness::with_agent.
Fields§
§description: StringOne-line description shown to the model when it picks a subagent_type.
system_prompt: Option<String>The subagent’s system prompt (replaces the default coding-assistant base);
None keeps the default.
model: Option<String>Model override for the subagent; None uses the run’s model.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentDef
impl RefUnwindSafe for AgentDef
impl Send for AgentDef
impl Sync for AgentDef
impl Unpin for AgentDef
impl UnsafeUnpin for AgentDef
impl UnwindSafe for AgentDef
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