def get_configuration_names(call: APICall, company_id, request: GetConfigurationNamesRequest): tasks_params = HyperParams.get_configuration_names( company_id, task_ids=request.tasks, skip_empty=request.skip_empty) call.result.data = { "configurations": [{ "task": task, **data } for task, data in tasks_params.items()] }
def get_configuration_names( call: APICall, company_id, request: GetConfigurationNamesRequest ): with translate_errors_context(): tasks_params = HyperParams.get_configuration_names( company_id, task_ids=request.tasks ) call.result.data = { "configurations": [ {"task": task, **data} for task, data in tasks_params.items() ] }