-
Notifications
You must be signed in to change notification settings - Fork 648
Description
Priority: Medium
Problem Statement
Agents start with a fixed tool set defined at initialization. When a task evolves and requires capabilities not in the initial set, the agent has no way to discover or load additional tools mid-run. Static upfront filtering misses tools that become relevant as the conversation progresses.
Proposed Solution
Provide a load_relevant_tools meta-tool that lets the agent autonomously discover and load additional capabilities as the task evolves.
def load_relevant_tools(query: str, limit: int = 10) -> list[ToolDescription]:
"""Search for additional tools by description."""
...Start with a relevant subset of tools, but let the agent expand its toolkit when needed. This leans into agent autonomy rather than rigid upfront filtering.
Use Case
- Agents whose tasks evolve beyond the initially loaded tool set
- Multi-step workflows where later steps need different capabilities
- Reducing initial context overhead while preserving access to the full tool catalog
Additional Context
Part of the Context Management epic, Track 2: Tool Context. Complements the Semantic Dynamic Tool Registry (automatic approach) with an autonomous approach.