pub struct SequentialAgentBuilder<P: LlmProvider> { /* private fields */ }Expand description
Builder for SequentialAgent.
Implementations§
Source§impl<P: LlmProvider> SequentialAgentBuilder<P>
impl<P: LlmProvider> SequentialAgentBuilder<P>
Sourcepub fn agent(self, agent: AgentRunner<P>) -> Self
pub fn agent(self, agent: AgentRunner<P>) -> Self
Add an agent to the sequential pipeline.
Sourcepub fn agents(self, agents: Vec<AgentRunner<P>>) -> Self
pub fn agents(self, agents: Vec<AgentRunner<P>>) -> Self
Add multiple agents to the sequential pipeline.
Sourcepub fn build(self) -> Result<SequentialAgent<P>, Error>
pub fn build(self) -> Result<SequentialAgent<P>, Error>
Build the SequentialAgent. Requires at least one agent.
Auto Trait Implementations§
impl<P> Freeze for SequentialAgentBuilder<P>
impl<P> !RefUnwindSafe for SequentialAgentBuilder<P>
impl<P> Send for SequentialAgentBuilder<P>
impl<P> Sync for SequentialAgentBuilder<P>
impl<P> Unpin for SequentialAgentBuilder<P>
impl<P> UnsafeUnpin for SequentialAgentBuilder<P>
impl<P> !UnwindSafe for SequentialAgentBuilder<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