pub struct ParallelAgentBuilder<P: LlmProvider + 'static> { /* private fields */ }Expand description
Builder for ParallelAgent.
Implementations§
Source§impl<P: LlmProvider + 'static> ParallelAgentBuilder<P>
impl<P: LlmProvider + 'static> ParallelAgentBuilder<P>
Sourcepub fn agent(self, agent: AgentRunner<P>) -> Self
pub fn agent(self, agent: AgentRunner<P>) -> Self
Add an agent. Wraps it in Arc for concurrent sharing.
Sourcepub fn agents(self, agents: Vec<AgentRunner<P>>) -> Self
pub fn agents(self, agents: Vec<AgentRunner<P>>) -> Self
Add multiple agents.
Sourcepub fn build(self) -> Result<ParallelAgent<P>, Error>
pub fn build(self) -> Result<ParallelAgent<P>, Error>
Build the ParallelAgent. Requires at least one agent.
Auto Trait Implementations§
impl<P> Freeze for ParallelAgentBuilder<P>
impl<P> !RefUnwindSafe for ParallelAgentBuilder<P>
impl<P> Send for ParallelAgentBuilder<P>
impl<P> Sync for ParallelAgentBuilder<P>
impl<P> Unpin for ParallelAgentBuilder<P>
impl<P> UnsafeUnpin for ParallelAgentBuilder<P>
impl<P> !UnwindSafe for ParallelAgentBuilder<P>
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