Skip to main content

vv_agent/memory/artifacts/
config.rs

1use std::path::PathBuf;
2
3#[derive(Debug, Clone, PartialEq, Eq)]
4pub struct ToolResultArtifactConfig {
5    pub workspace: Option<PathBuf>,
6    pub artifact_dir: PathBuf,
7    pub compact_threshold: usize,
8    pub keep_last: usize,
9    pub excerpt_head: usize,
10    pub excerpt_tail: usize,
11}
12
13impl Default for ToolResultArtifactConfig {
14    fn default() -> Self {
15        Self {
16            workspace: None,
17            artifact_dir: PathBuf::from(".memory/tool_results"),
18            compact_threshold: 2_000,
19            keep_last: 3,
20            excerpt_head: 200,
21            excerpt_tail: 200,
22        }
23    }
24}