#[non_exhaustive]pub enum DciError {
InvalidRoot {
path: PathBuf,
reason: String,
},
PathEscape {
requested: String,
},
NotFound {
requested: String,
},
InvalidPattern(String),
InvalidGlob {
glob: String,
reason: String,
},
Timeout {
millis: u64,
},
Io {
path: PathBuf,
source: Error,
},
Worker(String),
}Expand description
Errors produced by corpus-interaction operations.
These are surfaced to the agent as tool-call errors, so their Display
text is written to be intelligible to a language model deciding what to do
next (e.g. “path escapes the corpus root” tells it to pick a path inside the
corpus).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidRoot
The corpus root could not be established (missing, not a directory, or not canonicalizable).
PathEscape
A requested path resolved outside the corpus root (path traversal or a symlink escaping the jail).
NotFound
A requested path does not exist inside the corpus.
InvalidPattern(String)
The caller supplied an invalid regular expression.
InvalidGlob
The caller supplied an invalid glob.
Timeout
An operation exceeded its time budget.
Io
An underlying I/O failure.
Worker(String)
A background worker task failed to complete (runtime/cancellation).
Trait Implementations§
Source§impl Error for DciError
impl Error for DciError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()