pub struct SwarmAgent {
pub name: String,
pub model: Arc<dyn ChatModel>,
pub tools: Vec<Arc<dyn Tool>>,
pub system_prompt: Option<String>,
}Expand description
A swarm agent definition.
Fields§
§name: String§model: Arc<dyn ChatModel>§tools: Vec<Arc<dyn Tool>>§system_prompt: Option<String>Auto Trait Implementations§
impl Freeze for SwarmAgent
impl !RefUnwindSafe for SwarmAgent
impl Send for SwarmAgent
impl Sync for SwarmAgent
impl Unpin for SwarmAgent
impl UnsafeUnpin for SwarmAgent
impl !UnwindSafe for SwarmAgent
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