pub struct SimpleRecursiveAgentBuilder { /* private fields */ }Expand description
Builder for constructing a SimpleRecursiveAgent with custom configuration.
Implementations§
Source§impl SimpleRecursiveAgentBuilder
impl SimpleRecursiveAgentBuilder
Sourcepub fn max_iterations(self, max_iterations: usize) -> Self
pub fn max_iterations(self, max_iterations: usize) -> Self
Set the maximum number of iterations (default: 5)
Sourcepub fn system_prompt(self, prompt: impl Into<String>) -> Self
pub fn system_prompt(self, prompt: impl Into<String>) -> Self
Set a custom system prompt
Sourcepub fn build(self) -> SimpleRecursiveAgent
pub fn build(self) -> SimpleRecursiveAgent
Build the agent
Auto Trait Implementations§
impl Freeze for SimpleRecursiveAgentBuilder
impl !RefUnwindSafe for SimpleRecursiveAgentBuilder
impl Send for SimpleRecursiveAgentBuilder
impl Sync for SimpleRecursiveAgentBuilder
impl Unpin for SimpleRecursiveAgentBuilder
impl !UnwindSafe for SimpleRecursiveAgentBuilder
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