pub struct IterativeProblemSolverBuilder { /* private fields */ }Expand description
Builder for constructing an IterativeProblemSolver with custom configuration.
Implementations§
Source§impl IterativeProblemSolverBuilder
impl IterativeProblemSolverBuilder
Sourcepub fn tools(self, tools: Vec<Box<dyn LlmTool>>) -> Self
pub fn tools(self, tools: Vec<Box<dyn LlmTool>>) -> Self
Set the tools available to the problem solver
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: 3)
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) -> IterativeProblemSolver
pub fn build(self) -> IterativeProblemSolver
Build the problem solver
Auto Trait Implementations§
impl Freeze for IterativeProblemSolverBuilder
impl !RefUnwindSafe for IterativeProblemSolverBuilder
impl Send for IterativeProblemSolverBuilder
impl Sync for IterativeProblemSolverBuilder
impl Unpin for IterativeProblemSolverBuilder
impl !UnwindSafe for IterativeProblemSolverBuilder
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