pub struct SubAgentDef {
pub name: String,
pub description: String,
pub system_prompt: String,
pub tools: Vec<Arc<dyn Tool>>,
}Expand description
Definition of a custom sub-agent type available to the task tool.
Fields§
§name: String§description: String§system_prompt: String§tools: Vec<Arc<dyn Tool>>Trait Implementations§
Source§impl Clone for SubAgentDef
impl Clone for SubAgentDef
Source§fn clone(&self) -> SubAgentDef
fn clone(&self) -> SubAgentDef
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 moreAuto Trait Implementations§
impl Freeze for SubAgentDef
impl !RefUnwindSafe for SubAgentDef
impl Send for SubAgentDef
impl Sync for SubAgentDef
impl Unpin for SubAgentDef
impl UnsafeUnpin for SubAgentDef
impl !UnwindSafe for SubAgentDef
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