pub struct ParallelAgent<P: LlmProvider + 'static> { /* private fields */ }Expand description
Runs multiple sub-agents concurrently via tokio::JoinSet. All agents
receive the same input task. Returns merged results with accumulated
TokenUsage.
Implementations§
Source§impl<P: LlmProvider + 'static> ParallelAgent<P>
impl<P: LlmProvider + 'static> ParallelAgent<P>
Sourcepub fn builder() -> ParallelAgentBuilder<P>
pub fn builder() -> ParallelAgentBuilder<P>
Create a new ParallelAgentBuilder.
Trait Implementations§
Source§impl<P: LlmProvider + 'static> Debug for ParallelAgent<P>
impl<P: LlmProvider + 'static> Debug for ParallelAgent<P>
Source§impl<P: LlmProvider + 'static> From<ParallelAgent<P>> for WorkflowRouter<P>
impl<P: LlmProvider + 'static> From<ParallelAgent<P>> for WorkflowRouter<P>
Source§fn from(agent: ParallelAgent<P>) -> Self
fn from(agent: ParallelAgent<P>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<P> Freeze for ParallelAgent<P>
impl<P> !RefUnwindSafe for ParallelAgent<P>
impl<P> Send for ParallelAgent<P>
impl<P> Sync for ParallelAgent<P>
impl<P> Unpin for ParallelAgent<P>
impl<P> UnsafeUnpin for ParallelAgent<P>
impl<P> !UnwindSafe for ParallelAgent<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