pub struct ReasoningLoopBuilder { /* private fields */ }Expand description
Builder for ReasoningLoop with fluent API
Implementations§
Source§impl ReasoningLoopBuilder
impl ReasoningLoopBuilder
Sourcepub fn with_profile(self, profile: Profile) -> Self
pub fn with_profile(self, profile: Profile) -> Self
Set the default profile
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Set the execution timeout
Sourcepub fn with_parallel(self, enabled: bool, max_concurrent: usize) -> Self
pub fn with_parallel(self, enabled: bool, max_concurrent: usize) -> Self
Enable parallel execution
Sourcepub fn with_executor(self, executor: Arc<dyn ThinkToolExecutor>) -> Self
pub fn with_executor(self, executor: Arc<dyn ThinkToolExecutor>) -> Self
Set the ThinkTool executor
Sourcepub fn with_memory(self, memory: Arc<dyn MemoryProvider>) -> Self
pub fn with_memory(self, memory: Arc<dyn MemoryProvider>) -> Self
Set the memory provider
Sourcepub fn with_memory_config(self, top_k: usize, min_score: f32) -> Self
pub fn with_memory_config(self, top_k: usize, min_score: f32) -> Self
Configure memory retrieval
Sourcepub fn with_streaming(self, enabled: bool, buffer_size: usize) -> Self
pub fn with_streaming(self, enabled: bool, buffer_size: usize) -> Self
Enable streaming output
Sourcepub fn with_llm_params(self, temperature: f64, max_tokens: u32) -> Self
pub fn with_llm_params(self, temperature: f64, max_tokens: u32) -> Self
Set LLM parameters
Sourcepub fn with_retries(self, enabled: bool, max_retries: u32) -> Self
pub fn with_retries(self, enabled: bool, max_retries: u32) -> Self
Set retry configuration
Sourcepub fn with_config(self, config: ReasoningConfig) -> Self
pub fn with_config(self, config: ReasoningConfig) -> Self
Set the full config
Sourcepub fn build(self) -> Result<ReasoningLoop>
pub fn build(self) -> Result<ReasoningLoop>
Build the ReasoningLoop
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReasoningLoopBuilder
impl !RefUnwindSafe for ReasoningLoopBuilder
impl Send for ReasoningLoopBuilder
impl Sync for ReasoningLoopBuilder
impl Unpin for ReasoningLoopBuilder
impl !UnwindSafe for ReasoningLoopBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more