memoryサーチツールを実装

This commit is contained in:
2026-04-27 17:24:08 +09:00
parent c8fe95901c
commit c9d1d4fa5c
10 changed files with 936 additions and 208 deletions
+2
View File
@@ -205,6 +205,8 @@ impl MemoryConfig {
fn merge(self, upper: Self) -> Self {
Self {
workspace_root: upper.workspace_root.or(self.workspace_root),
search_hit_limit: upper.search_hit_limit.or(self.search_hit_limit),
search_excerpt_lines: upper.search_excerpt_lines.or(self.search_excerpt_lines),
}
}
}
+8
View File
@@ -54,6 +54,14 @@ pub struct MemoryConfig {
/// absolute path.
#[serde(default)]
pub workspace_root: Option<PathBuf>,
/// Maximum number of hits returned by `MemorySearch` /
/// `KnowledgeSearch`. `None` ⇒ tool default (20).
#[serde(default)]
pub search_hit_limit: Option<usize>,
/// Lines of context before and after each match in search excerpts.
/// `None` ⇒ tool default (3).
#[serde(default)]
pub search_excerpt_lines: Option<usize>,
}
/// Pod metadata.