Get Tools For Task • AI Agents Framework
get_tools_for_task: Analyze a task description and return appropriate tools.
get_tools_for_task
Function
</div>
This function is defined in the auto module.
Analyze a task description and return appropriate tools.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
agent["Agent"] -- "uses" --> tool["Tool: get_tools_for_task"]
tool -- "returns" --> result["Result"]
style tool fill:#189AB4,color:#fff
style agent fill:#8B0000,color:#fff
style result fill:#8B0000,color:#fffSignature
def get_tools_for_task(task_description: str) -> List[str]Parameters
ParamField
strThe task to analyze
Returns
ResponseField
List[str]List of tool names appropriate for the task
Uses
matched_categories.addseen.add
Source
View on GitHubpraisonai/auto.py at line 398