Skip to main content

vv_agent/memory/artifacts/
config.rs

1#[derive(Debug, Clone, PartialEq, Eq)]
2pub struct ToolResultArtifactConfig {
3    pub artifact_namespace: String,
4    pub compact_threshold: usize,
5    pub keep_last: usize,
6    pub excerpt_head: usize,
7    pub excerpt_tail: usize,
8}
9
10impl Default for ToolResultArtifactConfig {
11    fn default() -> Self {
12        Self {
13            artifact_namespace: "memory".to_string(),
14            compact_threshold: 2_000,
15            keep_last: 3,
16            excerpt_head: 200,
17            excerpt_tail: 200,
18        }
19    }
20}