pub struct ToolExecutionConfigBuilder { /* private fields */ }Expand description
Builder for creating tool execution configurations.
Implementations§
Source§impl ToolExecutionConfigBuilder
impl ToolExecutionConfigBuilder
Sourcepub fn max_retries(self, max_retries: u32) -> Self
pub fn max_retries(self, max_retries: u32) -> Self
Set the maximum number of retry attempts.
Sourcepub fn retry_delay(self, delay: Duration) -> Self
pub fn retry_delay(self, delay: Duration) -> Self
Set the base retry delay.
Sourcepub fn exponential_backoff(self, enabled: bool) -> Self
pub fn exponential_backoff(self, enabled: bool) -> Self
Enable or disable exponential backoff.
Sourcepub fn max_retry_delay(self, delay: Duration) -> Self
pub fn max_retry_delay(self, delay: Duration) -> Self
Set the maximum retry delay for exponential backoff.
Sourcepub fn parallel_execution(self, enabled: bool) -> Self
pub fn parallel_execution(self, enabled: bool) -> Self
Enable or disable parallel execution.
Sourcepub fn max_concurrent_tools(self, max: usize) -> Self
pub fn max_concurrent_tools(self, max: usize) -> Self
Set the maximum number of concurrent tool executions.
Sourcepub fn build(self) -> ToolExecutionConfig
pub fn build(self) -> ToolExecutionConfig
Build the configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolExecutionConfigBuilder
impl RefUnwindSafe for ToolExecutionConfigBuilder
impl Send for ToolExecutionConfigBuilder
impl Sync for ToolExecutionConfigBuilder
impl Unpin for ToolExecutionConfigBuilder
impl UnsafeUnpin for ToolExecutionConfigBuilder
impl UnwindSafe for ToolExecutionConfigBuilder
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