refactor: remove unused tool filter middleware and helpers

- Deleted tool_filter_middleware_test.go and tool_helpers.go as they are no longer needed.
- Removed associated test cases in tool_helpers_test.go.
- Refactored knowledge retriever logic by moving it to a new file and updating imports.
- Introduced tooling package for tool result reduction logic.
- Updated traces package to include new trace types and structures.
- Adjusted executor and tool search tool to reflect new package structure.
This commit is contained in:
mlogclub
2026-06-26 17:52:18 +08:00
parent 84094f4ad8
commit 023f224d51
47 changed files with 18 additions and 4491 deletions
@@ -8,8 +8,8 @@ import (
"strings"
"agent-desk/internal/ai/mcps"
impladapter "agent-desk/internal/ai/runtime/internal/impl/adapter"
"agent-desk/internal/ai/runtime/registry"
"agent-desk/internal/ai/runtime/tooling"
"agent-desk/internal/pkg/i18nx"
"agent-desk/internal/pkg/toolx"
@@ -277,5 +277,5 @@ func cloneArguments(input map[string]any) map[string]any {
}
func buildToolCallResultSummary(result *mcps.ToolCallResult) string {
return impladapter.BuildReducedToolResultSummary(result)
return tooling.BuildReducedToolResultSummary(result)
}