SpencerCPurdy commited on
Commit
5291705
·
verified ·
1 Parent(s): ba061fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -105,6 +105,7 @@ class Task:
105
  created_at (datetime): The timestamp when the task was created.
106
  completed_at (Optional[datetime]): The timestamp when the task was completed or failed.
107
  performance_metrics (Dict[str, float]): Metrics related to the task's performance, like execution time.
 
108
  """
109
  id: str
110
  description: str
@@ -116,6 +117,7 @@ class Task:
116
  created_at: datetime = field(default_factory=datetime.now)
117
  completed_at: Optional[datetime] = None
118
  performance_metrics: Dict[str, float] = field(default_factory=dict)
 
119
 
120
 
121
  # ==============================================================================
 
105
  created_at (datetime): The timestamp when the task was created.
106
  completed_at (Optional[datetime]): The timestamp when the task was completed or failed.
107
  performance_metrics (Dict[str, float]): Metrics related to the task's performance, like execution time.
108
+ metadata (Dict[str, Any]): A dictionary for storing arbitrary data related to the task, such as the suggested agent role.
109
  """
110
  id: str
111
  description: str
 
117
  created_at: datetime = field(default_factory=datetime.now)
118
  completed_at: Optional[datetime] = None
119
  performance_metrics: Dict[str, float] = field(default_factory=dict)
120
+ metadata: Dict[str, Any] = field(default_factory=dict)
121
 
122
 
123
  # ==============================================================================