pub struct Limits {
pub max_results: usize,
pub max_files_walked: usize,
pub max_file_bytes: u64,
pub max_line_len: usize,
pub max_read_lines: usize,
pub timeout: Duration,
pub respect_gitignore: bool,
pub include_hidden: bool,
}Expand description
Resource bounds applied to every corpus operation.
Defaults are tuned to return useful-but-bounded evidence to an LLM without flooding its context window.
Fields§
§max_results: usizeMaximum number of matches (search) or paths (find) returned per call.
max_files_walked: usizeMaximum number of files a single walk will visit before stopping.
max_file_bytes: u64Files larger than this (in bytes) are skipped during search and truncated during read.
max_line_len: usizeMaximum characters kept from any single line before truncation.
max_read_lines: usizeMaximum number of lines a single read call may return.
timeout: DurationPer-operation wall-clock budget.
respect_gitignore: boolWhether .gitignore/.ignore rules are honored during walks.
true suits source-code corpora; set false for forensic log corpora
where ignored files may still be evidence.
Whether hidden (dot) files and directories are included in walks.