externalize more agent/tool strings and compaction note templates

This commit is contained in:
DBT
2026-02-23 16:15:30 +00:00
parent 6431f5792d
commit 6848f8f674
7 changed files with 113 additions and 43 deletions

View File

@@ -15,7 +15,7 @@ func TestSessionsToolListWithKindsAndQuery(t *testing.T) {
{Key: "telegram:1", Kind: "main", Summary: "project alpha", UpdatedAt: time.Now()},
{Key: "cron:1", Kind: "cron", Summary: "nightly sync", UpdatedAt: time.Now()},
}
}, nil)
}, nil, "", "")
out, err := tool.Execute(context.Background(), map[string]interface{}{
"action": "list",
@@ -37,7 +37,7 @@ func TestSessionsToolHistoryWithoutTools(t *testing.T) {
{Role: "tool", Content: "tool output"},
{Role: "assistant", Content: "ok"},
}
})
}, "", "")
out, err := tool.Execute(context.Background(), map[string]interface{}{
"action": "history",
@@ -58,7 +58,7 @@ func TestSessionsToolHistoryFromMe(t *testing.T) {
{Role: "assistant", Content: "a1"},
{Role: "assistant", Content: "a2"},
}
})
}, "", "")
out, err := tool.Execute(context.Background(), map[string]interface{}{
"action": "history",