pub struct AgentGroup { /* private fields */ }Expand description
A group of agents that can be executed together.
Implementations§
Source§impl AgentGroup
impl AgentGroup
Sourcepub fn new(strategy: GroupStrategy) -> Self
pub fn new(strategy: GroupStrategy) -> Self
Create a new empty group with the given strategy.
Sourcepub async fn run(&self, prompt: String) -> SdkResult<GroupResult>
pub async fn run(&self, prompt: String) -> SdkResult<GroupResult>
Execute the group with the given prompt.
Auto Trait Implementations§
impl !RefUnwindSafe for AgentGroup
impl !UnwindSafe for AgentGroup
impl Freeze for AgentGroup
impl Send for AgentGroup
impl Sync for AgentGroup
impl Unpin for AgentGroup
impl UnsafeUnpin for AgentGroup
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