(execCtx ExecutionContext, key string)
| 1064 | |
| 1065 | func handleToolSearchQuery(query string, registry *ToolRegistry) string { |
| 1066 | results := registry.SearchDeferred(query) |
| 1067 | if len(results) == 0 { |
| 1068 | deferred := registry.GetDeferredTools() |
| 1069 | if len(deferred) == 0 { |
| 1070 | return "No deferred tools are available. All tools are already loaded." |
| 1071 | } |
| 1072 | names := make([]string, 0, len(deferred)) |
| 1073 | for name := range deferred { |
| 1074 | names = append(names, name) |
| 1075 | } |
| 1076 | sort.Strings(names) |
| 1077 | return fmt.Sprintf("No tools match '%s'.\n\nAvailable deferred tools: %s\n\nUse 'select:Name' to load one or more of them.", query, strings.Join(names, ", ")) |
no outgoing calls
no test coverage detected