feat: Added Tool Fetcher experiment and code. #36
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Implemented the Tool Fetcher algorithm to let an agent dynamically discover and call tools via a single hub. Uses dense embeddings + optional Milvus vector index, with substring fallback. Reduces context overhead by fetching only relevant tools on-demand instead of loading all tools upfront.
What's included
evaluator/algorithms/tool_fetcher_algorithm.pytool_hubthat supports:action='search'to retrieve relevant tools by name/descriptionaction='call'to invoke a specific tool by exact nameHuggingFaceEmbeddingswith optional Milvus index; automatic fallback to substring matchTOOL_LOG_PATHevaluator/config/yaml/tool_fetcher_experiments.yamlQuick test