pub struct MultiAgentOrchestrator { /* private fields */ }Expand description
Multi-agent orchestrator.
Implementations§
Source§impl MultiAgentOrchestrator
impl MultiAgentOrchestrator
Sourcepub fn builder() -> MultiAgentOrchestratorBuilder
pub fn builder() -> MultiAgentOrchestratorBuilder
Starts building an orchestrator.
Sourcepub async fn run(&mut self, input: &str) -> Result<AgentOutput>
pub async fn run(&mut self, input: &str) -> Result<AgentOutput>
Runs the configured workflow.
Sourcepub fn add_agent_boxed(
&mut self,
name: impl Into<String>,
agent: Box<dyn AgentTrait>,
)
pub fn add_agent_boxed( &mut self, name: impl Into<String>, agent: Box<dyn AgentTrait>, )
Registers or replaces a named agent after construction.
Auto Trait Implementations§
impl Freeze for MultiAgentOrchestrator
impl !RefUnwindSafe for MultiAgentOrchestrator
impl Send for MultiAgentOrchestrator
impl Sync for MultiAgentOrchestrator
impl Unpin for MultiAgentOrchestrator
impl UnsafeUnpin for MultiAgentOrchestrator
impl !UnwindSafe for MultiAgentOrchestrator
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