pub struct MultiAgentOrchestratorBuilder { /* private fields */ }Expand description
Builder for MultiAgentOrchestrator.
Implementations§
Source§impl MultiAgentOrchestratorBuilder
impl MultiAgentOrchestratorBuilder
Sourcepub fn add_agent(
self,
name: impl Into<String>,
agent: impl AgentTrait + 'static,
) -> Self
pub fn add_agent( self, name: impl Into<String>, agent: impl AgentTrait + 'static, ) -> Self
Registers an agent by name.
Sourcepub fn add_agent_boxed(
self,
name: impl Into<String>,
agent: Box<dyn AgentTrait>,
) -> Self
pub fn add_agent_boxed( self, name: impl Into<String>, agent: Box<dyn AgentTrait>, ) -> Self
Registers a boxed agent by name.
Sourcepub fn routing(self, routing: RoutingStrategy) -> Self
pub fn routing(self, routing: RoutingStrategy) -> Self
Sets the routing strategy.
Enables shared conversation memory.
Sourcepub fn build(self) -> Result<MultiAgentOrchestrator>
pub fn build(self) -> Result<MultiAgentOrchestrator>
Builds the orchestrator.
Auto Trait Implementations§
impl Freeze for MultiAgentOrchestratorBuilder
impl !RefUnwindSafe for MultiAgentOrchestratorBuilder
impl Send for MultiAgentOrchestratorBuilder
impl Sync for MultiAgentOrchestratorBuilder
impl Unpin for MultiAgentOrchestratorBuilder
impl UnsafeUnpin for MultiAgentOrchestratorBuilder
impl !UnwindSafe for MultiAgentOrchestratorBuilder
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