Closed Toasterme closed 1 month ago
Same error when running starter_template:
Traceback (most recent call last):
File ".../starter_template/main.py", line 68, in
You have to specify the expected_output
for the task.
The expected_output
field is mandatory for the task. See the description of the Task class and the mandatory Field
:
class Task(BaseModel):
""" Class that represents a task to be executed.
Each task must have a description, an expected output and an agent responsible for execution.
...
"""
For example:
task = Task(
description='Edit the blog post draft, improving its clarity, coherence, and engagement.',
agent=content_editor,
expected_output='A refined finalized version of the blog post in markdown format'
)
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stale for 5 days with no activity.
as the title said, the example is not working
pydantic_core._pydantic_core.ValidationError: 1 validation error for Task expected_output Field required [type=missing, input_value={'description': "\nAnalyz...ick ideal destinations)}, input_type=dict] For further information visit https://errors.pydantic.dev/2.7/v/missing