Comments (2)
Same error when running starter_template:
Traceback (most recent call last):
File ".../starter_template/main.py", line 68, in
result = custom_crew.run()
^^^^^^^^^^^^^^^^^
File ".../starter_template/main.py", line 39, in run
custom_task_1 = tasks.task_1_name(
^^^^^^^^^^^^^^^^^^
File ".../starter_template/tasks.py", line 13, in task_1_name
return Task(
^^^^^
File ".../crewAIenv/lib/python3.12/site-packages/crewai/task.py", line 102, in init
super().init(**config, **data)
File ".../crewAIenv/lib/python3.12/site-packages/pydantic/main.py", line 176, in init
self.pydantic_validator.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for Task
expected_output
Field required [type=missing, input_value={'description': "\nDo som...agent 1 backstory here)}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.7/v/missing
from crewai-examples.
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'
)
from crewai-examples.
Related Issues (20)
- Agent stopped due to iteration limit or time limit HOT 1
- Game description writer agent
- ACTION Input not working. HOT 1
- No module named 'pymarkdown'
- How to use Tools with Azure OpenAI HOT 1
- How to use `SerperDevTool` with bing search? HOT 1
- How is the workflow of the tasks?
- OpenAI assistants
- OpenAI usage
- Do we have any way to pass Dict or List as tool input?
- Also MIT license?
- game-builder-crew Task expected_output error HOT 2
- maximum context length exceeded
- How to get gpt 4 api key for free?
- Browserless Free Tier No Longer Available: Alternative Required
- Bellow vs Below?
- [feature request] Add a Conversational Agent example
- value is not a valid list
- Example for coding a software
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crewai-examples.