pub struct MixtureOfAgentsAgent<P: LlmProvider + 'static> { /* private fields */ }Expand description
Runs N proposer agents in parallel, collects their outputs, and feeds a combined proposal document to a synthesizer agent for refinement. Supports multiple layers where each layer’s synthesis feeds the next layer’s proposers.
Implementations§
Source§impl<P: LlmProvider + 'static> MixtureOfAgentsAgent<P>
impl<P: LlmProvider + 'static> MixtureOfAgentsAgent<P>
Sourcepub fn builder() -> MixtureOfAgentsAgentBuilder<P>
pub fn builder() -> MixtureOfAgentsAgentBuilder<P>
Create a new MixtureOfAgentsAgentBuilder.
Sourcepub async fn execute(&self, task: &str) -> Result<AgentOutput, Error>
pub async fn execute(&self, task: &str) -> Result<AgentOutput, Error>
Execute the mixture-of-agents pipeline.
For each layer, all proposers run in parallel on the current input, their outputs are merged into a proposal document, and the synthesizer produces a refined output. Multi-layer mode feeds each synthesis back as input to the next layer’s proposers.
Trait Implementations§
Source§impl<P: LlmProvider + 'static> Debug for MixtureOfAgentsAgent<P>
impl<P: LlmProvider + 'static> Debug for MixtureOfAgentsAgent<P>
Source§impl<P: LlmProvider + 'static> From<MixtureOfAgentsAgent<P>> for WorkflowRouter<P>
impl<P: LlmProvider + 'static> From<MixtureOfAgentsAgent<P>> for WorkflowRouter<P>
Source§fn from(agent: MixtureOfAgentsAgent<P>) -> Self
fn from(agent: MixtureOfAgentsAgent<P>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<P> Freeze for MixtureOfAgentsAgent<P>
impl<P> !RefUnwindSafe for MixtureOfAgentsAgent<P>
impl<P> Send for MixtureOfAgentsAgent<P>
impl<P> Sync for MixtureOfAgentsAgent<P>
impl<P> Unpin for MixtureOfAgentsAgent<P>
impl<P> UnsafeUnpin for MixtureOfAgentsAgent<P>
impl<P> !UnwindSafe for MixtureOfAgentsAgent<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