Consistently storing async and sync output for context

This commit is contained in:
Brandon Hancock
2024-06-20 13:47:37 -04:00
parent ea5a784877
commit 26489ced1a
4 changed files with 1886 additions and 48 deletions

View File

@@ -5,6 +5,7 @@ from pydantic import BaseModel, Field
from crewai.tasks.task_output import TaskOutput
# TODO: Potentially add in JSON_OUTPUT, PYDANTIC_OUTPUT, etc.
class CrewOutput(BaseModel):
final_output: str = Field(description="Final output of the crew")
tasks_output: list[TaskOutput] = Field(