Skip to main content

causa_runtime/executor/
options.rs

1//! Configuration fixed for the lifetime of an executor.
2
3use causa_kernel::{ArtifactStore, ToolBatchProcessor};
4use std::sync::Arc;
5use std::time::Duration;
6
7/// Fixed processing configuration received when constructing an executor.
8#[derive(Default)]
9pub struct ToolExecutorOptions {
10    /// Ordered processors invoked before tool dispatch.
11    pub before: Vec<Arc<dyn ToolBatchProcessor>>,
12    /// Ordered processors invoked after every call has a result.
13    pub after: Vec<Arc<dyn ToolBatchProcessor>>,
14    /// Optional local timeout, started when each tool call actually begins.
15    pub call_timeout: Option<Duration>,
16    /// Optional host storage passed to tools and dynamic-source bridges.
17    pub artifact_store: Option<Arc<dyn ArtifactStore>>,
18}