Parameters
This class has no initialization parameters as it uses only methods without state.Functions
prepare_agents_registry
Prepare a registry of agents indexed by their names.
Parameters:
agent_configurations
(List[Any]): List of agent configurations
tuple[Dict[str, Any], List[str]]
: Tuple of (agents_dict, agent_names_list)
select_agent_for_task
Select the most appropriate agent for a given task.
Parameters:
current_task
(Task): The task that needs an agentcontext
(List[Any]): Context for agent selectionagents_registry
(Dict[str, Any]): Dictionary of available agentsagent_names
(List[str]): List of agent namesagent_configurations
(List[Any]): Original agent configurations
Optional[str]
: Selected agent name or None if selection fails