pub struct LoopAgentBuilder<P: LlmProvider> { /* private fields */ }Expand description
Builder for LoopAgent.
Implementations§
Source§impl<P: LlmProvider> LoopAgentBuilder<P>
impl<P: LlmProvider> LoopAgentBuilder<P>
Sourcepub fn agent(self, agent: AgentRunner<P>) -> Self
pub fn agent(self, agent: AgentRunner<P>) -> Self
Set the agent to loop.
Sourcepub fn max_iterations(self, n: usize) -> Self
pub fn max_iterations(self, n: usize) -> Self
Set the maximum number of iterations (must be >= 1).
Auto Trait Implementations§
impl<P> !Freeze for LoopAgentBuilder<P>
impl<P> !RefUnwindSafe for LoopAgentBuilder<P>
impl<P> Send for LoopAgentBuilder<P>
impl<P> Sync for LoopAgentBuilder<P>
impl<P> Unpin for LoopAgentBuilder<P>
impl<P> UnsafeUnpin for LoopAgentBuilder<P>
impl<P> !UnwindSafe for LoopAgentBuilder<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