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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user