Parameters
Parameter | Type | Default | Description |
---|---|---|---|
model_provider | Optional[Any] | None | The model provider to use for combining results |
debug | bool | False | Whether to enable debug mode |
Functions
should_combine_results
Determine if results need to be combined or if single result should be returned.
Parameters:
results
(List[Task]): List of completed tasks with results
bool
: True if results should be combined, False if single result should be returned
get_single_result
Get the result from a single task.
Parameters:
results
(List[Task]): List containing one completed task
Any
: The response from the single task
combine_results
Combine multiple task results into a coherent final answer.
Parameters:
results
(List[Task]): List of completed tasks with resultsresponse_format
(Any): The desired format for the final responseagents
(List[Any]): List of agents (used for fallback debug setting)
Any
: Combined final response