-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Closed
Copy link
Milestone
Description
Required prerequisites
- I have searched the Issue Tracker and Discussions that this hasn't already been reported. (+1 or comment there if it has.)
- Consider asking first in a Discussion.
Motivation
When SingleAgentWorker generates response_content, TaskResult deserialization fails if the failed field is omitted by the underlying model (e.g., gpt-5-nano). This prevents task completion.
WARNING camel.camel.societies.workforce.structured_output_handler:structured_output_handler.py:308 Validation error for TaskResult: 1 validation error for TaskResult
failed
Field required [type=missing, input_value={'content': '0:00-2:00 ...的参与与努力。'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.11/v/missing. Attempting to fix common issues.
To ensure maximum compatibility and uninterrupted task execution, TaskResult deserialization should gracefully handle missing failed fields by defaulting them to False.
Solution
No response
Alternatives
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels