memory: clean prompt helper warning

This commit is contained in:
2026-06-01 07:50:27 +09:00
parent 03256db913
commit 3a0c8e1597
2 changed files with 3 additions and 24 deletions
+2 -23
View File
@@ -117,7 +117,7 @@ impl SystemPromptTemplate {
let body = tmpl
.render(ctx.to_minijinja_value())
.map_err(|e| SystemPromptError::Render(e.to_string()))?;
append_trailing_section_with_capabilities(
append_trailing_section(
&body,
ctx.prompts,
ctx.scope,
@@ -272,28 +272,7 @@ impl ToolCapabilities {
/// comes from the prompt catalog (`PodPrompt::WorkingBoundariesSection`
/// / `PodPrompt::AgentsMdSection`) so that wording can be overridden
/// per-pack without touching this function.
pub fn append_trailing_section(
body: &str,
prompts: &PromptCatalog,
scope: &Scope,
agents_md: Option<&str>,
resident_summary: Option<&str>,
resident_knowledge: Option<&[ResidentKnowledgeEntry]>,
resident_workflows: Option<&[ResidentWorkflowEntry]>,
) -> Result<String, SystemPromptError> {
append_trailing_section_with_capabilities(
body,
prompts,
scope,
agents_md,
resident_summary,
resident_knowledge,
resident_workflows,
ToolCapabilities::default(),
)
}
fn append_trailing_section_with_capabilities(
fn append_trailing_section(
body: &str,
prompts: &PromptCatalog,
scope: &Scope,