Recommend Agent Count • AI Agents Framework
recommend_agent_count: Recommend the optimal number of agents based on task complexity.
recommend_agent_count
Function
</div>
This function is defined in the auto module.
Recommend the optimal number of agents based on task complexity.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
input["Input Data"] --> agent["Agent: recommend_agent_count"]
agent --> output["Output Result"]
style agent fill:#8B0000,color:#fff
style input fill:#8B0000,color:#fff
style output fill:#8B0000,color:#fffSignature
def recommend_agent_count(task_description: str) -> intParameters
ParamField
strThe task to analyze
Returns
ResponseField
intRecommended number of agents (1-4)
Uses
BaseAutoGenerator.analyze_complexity
Used By
Source
View on GitHubpraisonai/auto.py at line 444