mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 23:58:34 +00:00
fix: improve Task.copy() method to handle both legacy and new style copy
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -480,6 +480,7 @@ class Task(BaseModel):
|
||||
task_output = guardrail_result.result
|
||||
elif isinstance(guardrail_result.result, dict):
|
||||
task_output.raw = guardrail_result.result
|
||||
task_output.json_dict = guardrail_result.result
|
||||
|
||||
self.output = task_output
|
||||
self.end_time = datetime.datetime.now()
|
||||
|
||||
Reference in New Issue
Block a user