Data classes for task outputs and reflections
description
(str): Description of the task that was executedresult
(Any): The actual result of the task executionagent
(str): Name of the agent that executed the tasktask_id
(str, optional): Unique identifier for the taskstatus
(str, optional): Status of the task (“completed”, “failed”, “partial”). Defaults to “completed”metadata
(Dict[str, Any], optional): Additional metadata about the task executionexecution_time
(float, optional): Time taken to execute the task in secondserror
(str, optional): Error message if the task faileddescription
: Task descriptionresult
: Task resultagent
: Agent nametask_id
: Task identifierstatus
: Execution statusmetadata
: Additional metadataexecution_time
: Execution durationerror
: Error message (if any)timestamp
: Timestamp when the output was createdDict[str, Any]
: Dictionary containing all task output datastr
: Human-readable string representationcontent
(str): The main reflection contentagent
(str): Name of the agent performing the reflectionconfidence
(float, optional): Confidence level in the reflection (0.0 to 1.0). Defaults to 1.0insights
(List[str], optional): List of key insights from the reflectionimprovements
(List[str], optional): List of suggested improvementsmetadata
(Dict[str, Any], optional): Additional metadata about the reflectioncontent
: Reflection contentagent
: Agent nameconfidence
: Confidence level (0.0-1.0)insights
: List of insightsimprovements
: List of improvementsmetadata
: Additional metadatatimestamp
: Timestamp when the reflection was createdDict[str, Any]
: Dictionary containing all reflection datainsight
(str): The insight to addimprovement
(str): The improvement suggestion to addstr
: Human-readable string representationstatus
field in TaskOutput before using the resultto_dict()
methods for saving outputs to databases or files