Skip to main content

Parameters

ParameterTypeDefaultDescription
membersList[Agent]RequiredThe list of member agents available for delegation
tool_mappingDict[str, Callable]RequiredA mapping from tool names to their callable function objects

Functions

get_delegation_tool

Dynamically generates the ‘delegate_task’ tool for the Team Leader. Parameters:
  • session_memory (Memory): The shared Memory object for the coordination session
Returns:
  • Callable: An asynchronous callable function that serves as the delegation tool

get_routing_tool

Generates the ‘route_request_to_member’ tool for the ‘route’ mode. Returns:
  • Callable: The routing tool function
I