@@ -117,22 +117,29 @@ class Task(ControlFlowModel):
117
117
)
118
118
agents : list ["Agent" ] = Field (
119
119
None ,
120
- description = "The agents assigned to the task. If not provided, agents will be inferred from the parent task, flow, or global default." ,
120
+ description = "The agents assigned to the task. If not provided, agents "
121
+ "will be inferred from the parent task, flow, or global default." ,
121
122
)
122
123
context : dict = Field (
123
124
default_factory = dict ,
124
- description = "Additional context for the task. If tasks are provided as context, they are automatically added as `depends_on`" ,
125
+ description = "Additional context for the task. If tasks are provided as "
126
+ "context, they are automatically added as `depends_on`" ,
125
127
)
126
128
subtasks : list ["Task" ] = Field (
127
129
default_factory = list ,
128
- description = "A list of subtasks that are part of this task. Subtasks are considered dependencies, though they may be skipped." ,
130
+ description = "A list of subtasks that are part of this task. Subtasks are "
131
+ "considered dependencies, though they may be skipped." ,
129
132
)
130
133
depends_on : list ["Task" ] = Field (
131
134
default_factory = list , description = "Tasks that this task depends on explicitly."
132
135
)
133
136
status : TaskStatus = TaskStatus .INCOMPLETE
134
137
result : T = None
135
- result_type : Union [type [T ], GenericAlias , _LiteralGenericAlias , None ] = None
138
+ result_type : Union [type [T ], GenericAlias , _LiteralGenericAlias , None ] = Field (
139
+ None ,
140
+ description = "The expected type of the result. This should be a type"
141
+ ", generic alias, BaseModel subclass, pd.DataFrame, or pd.Series." ,
142
+ )
136
143
error : Union [str , None ] = None
137
144
tools : list [ToolType ] = []
138
145
user_access : bool = False
0 commit comments