bringing TaskOutput.result back to avoind breakign change

This commit is contained in:
João Moura
2024-02-23 15:23:58 -03:00
parent 464dfc4e67
commit 093a9c8174
3 changed files with 6 additions and 3 deletions

View File

@@ -18,3 +18,6 @@ class TaskOutput(BaseModel):
excerpt = " ".join(self.description.split(" ")[:10])
self.summary = f"{excerpt}..."
return self
def result(self):
return self.exported_output

View File

@@ -237,7 +237,7 @@ class Telemetry:
{
"id": str(task.id),
"description": task.description,
"output": task.output.result,
"output": task.output.raw_output,
}
for task in crew.tasks
]