backend: normalize returns for evals (items, total); ensure title to … (#2329)
This commit is contained in:
@@ -58,7 +58,7 @@ def _custom_json_serializer(*args, **kwargs) -> str:
|
||||
return json.dumps(*args, default=pydantic.json.pydantic_encoder, **kwargs)
|
||||
|
||||
|
||||
def convert_to_task(task_obj: TaskModel, debug_enabled: bool = False) -> Task:
|
||||
def convert_to_task(task_obj: TaskModel, debug_enabled: bool = False, workflow_permanent_id: str | None = None) -> Task:
|
||||
if debug_enabled:
|
||||
LOG.debug("Converting TaskModel to Task", task_id=task_obj.task_id)
|
||||
task = Task(
|
||||
@@ -83,6 +83,7 @@ def convert_to_task(task_obj: TaskModel, debug_enabled: bool = False) -> Task:
|
||||
proxy_location=(ProxyLocation(task_obj.proxy_location) if task_obj.proxy_location else None),
|
||||
extracted_information_schema=task_obj.extracted_information_schema,
|
||||
workflow_run_id=task_obj.workflow_run_id,
|
||||
workflow_permanent_id=workflow_permanent_id,
|
||||
order=task_obj.order,
|
||||
retry=task_obj.retry,
|
||||
max_steps_per_run=task_obj.max_steps_per_run,
|
||||
|
||||
Reference in New Issue
Block a user