pub struct ExecutorBuilder { /* private fields */ }Expand description
Builder for creating tool executors with fluent API
Implementations§
Source§impl ExecutorBuilder
impl ExecutorBuilder
Sourcepub fn enable_cache(self) -> Self
pub fn enable_cache(self) -> Self
Enable tool call result caching
Sourcepub fn disable_cache(self) -> Self
pub fn disable_cache(self) -> Self
Disable tool call result caching
Sourcepub fn cache_max_size(self, size: usize) -> Self
pub fn cache_max_size(self, size: usize) -> Self
Set maximum cache size
Sourcepub fn build(self) -> ToolExecutor
pub fn build(self) -> ToolExecutor
Build the final executor
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecutorBuilder
impl RefUnwindSafe for ExecutorBuilder
impl Send for ExecutorBuilder
impl Sync for ExecutorBuilder
impl Unpin for ExecutorBuilder
impl UnsafeUnpin for ExecutorBuilder
impl UnwindSafe for ExecutorBuilder
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