Skip to content

Commit 42ff55f

Browse files
fix(utils): set default value for failed flag in TaskResult (#3349)
Co-authored-by: Wendong-Fan <133094783+Wendong-Fan@users.noreply.github.com>
1 parent d64e6e9 commit 42ff55f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

camel/societies/workforce/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ class TaskResult(BaseModel):
3838

3939
content: str = Field(description="The result of the task.")
4040
failed: bool = Field(
41-
description="Flag indicating whether the task processing failed."
41+
default=False,
42+
description="Flag indicating whether the task processing failed.",
4243
)
4344

4445

0 commit comments

Comments
 (0)