memoryサーチツールを実装
This commit is contained in:
@@ -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),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user