#[non_exhaustive]pub struct ToolExecutorOptions {
pub before: Vec<Arc<dyn ToolBatchProcessor>>,
pub after: Vec<Arc<dyn ToolBatchProcessor>>,
pub call_timeout: Option<Duration>,
pub artifact_store: Option<Arc<dyn ArtifactStore>>,
}Expand description
Fixed processing configuration received when constructing an executor.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.before: Vec<Arc<dyn ToolBatchProcessor>>Ordered processors invoked before tool dispatch.
after: Vec<Arc<dyn ToolBatchProcessor>>Ordered processors invoked after every call has a result.
call_timeout: Option<Duration>Optional local timeout, started when each tool call actually begins.
artifact_store: Option<Arc<dyn ArtifactStore>>Optional host storage passed to tools and dynamic-source bridges.
Implementations§
Source§impl ToolExecutorOptions
impl ToolExecutorOptions
Sourcepub fn with_before(self, before: Vec<Arc<dyn ToolBatchProcessor>>) -> Self
pub fn with_before(self, before: Vec<Arc<dyn ToolBatchProcessor>>) -> Self
Replaces the ordered processors invoked before tool dispatch.
Sourcepub fn with_after(self, after: Vec<Arc<dyn ToolBatchProcessor>>) -> Self
pub fn with_after(self, after: Vec<Arc<dyn ToolBatchProcessor>>) -> Self
Replaces the ordered processors invoked after every call has a result.
Sourcepub fn with_call_timeout(self, call_timeout: Duration) -> Self
pub fn with_call_timeout(self, call_timeout: Duration) -> Self
Sets the local timeout started when each tool call begins.
Sourcepub fn with_artifact_store(self, artifact_store: Arc<dyn ArtifactStore>) -> Self
pub fn with_artifact_store(self, artifact_store: Arc<dyn ArtifactStore>) -> Self
Sets the host storage passed to tools and dynamic-source bridges.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ToolExecutorOptions
impl !UnwindSafe for ToolExecutorOptions
impl Forget for ToolExecutorOptions
impl Freeze for ToolExecutorOptions
impl Move for ToolExecutorOptions
impl Send for ToolExecutorOptions
impl Sync for ToolExecutorOptions
impl Unpin for ToolExecutorOptions
impl UnsafeUnpin for ToolExecutorOptions
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