toloka.client.TolokaClient.find_aggregated_solutions | Source code
Finds aggregated responses that match certain criteria.
Pass to the
find_aggregated_solutions the ID of the operation started by the aggregate_solutions_by_pool method.
The number of returned aggregated responses is limited. To find remaining responses call
find_aggregated_solutions with updated search criteria.
To iterate over all matching aggregated responses you may use the get_aggregated_solutions method.
The ID of the aggregation operation.
Responses for tasks with IDs less than the specified value.
Responses for tasks with IDs less than or equal to the specified value.
Responses for tasks with IDs greater than the specified value.
Responses for tasks with IDs greater than or equal to the specified value.
|Union[List[str], AggregatedSolutionSortItems, None]|
Sorting options. Default:
Returned aggregated responses limit. The maximum allowed value: 100,000. The default value: 50.
Found responses and a flag showing whether there are more matching responses exceeding the limit.
The example shows how to get all aggregated responses using the
First, run the aggregate_solutions_by_pool method and wait for the operation to complete.
The ID of the operation is used to get aggregated results.
current_result = toloka_client.find_aggregated_solutions(aggregation_operation.id)aggregation_results = current_result.itemswhile current_result.has_more:current_result = toloka_client.find_aggregated_solutions(aggregation_operation.id,task_id_gt=current_result.items[-1].task_id,)aggregation_results = aggregation_results + current_result.itemsprint(len(aggregation_results))
Last updated: August 28, 2023