mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 16:18:30 +00:00
Update Sequential.md (#849)
To Resolve : pydantic_core._pydantic_core.ValidationError: 1 validation error for Task expected_output Field required [type=missing, input_value=, input_type=dict] For further information visit https://errors.pydantic.dev/2.6/v/missing "Expected Output" is mandatory now as it forces people to be specific about the expected result and get better result refer : https://github.com/joaomdmoura/crewAI/issues/308
This commit is contained in:
@@ -37,10 +37,9 @@ writer = Agent(
|
|||||||
backstory='A skilled writer with a talent for crafting compelling narratives'
|
backstory='A skilled writer with a talent for crafting compelling narratives'
|
||||||
)
|
)
|
||||||
|
|
||||||
# Define the tasks in sequence
|
research_task = Task(description='Gather relevant data...', agent=researcher, expected_output='Raw Data')
|
||||||
research_task = Task(description='Gather relevant data...', agent=researcher)
|
analysis_task = Task(description='Analyze the data...', agent=analyst, expected_output='Data Insights')
|
||||||
analysis_task = Task(description='Analyze the data...', agent=analyst)
|
writing_task = Task(description='Compose the report...', agent=writer, expected_output='Final Report')
|
||||||
writing_task = Task(description='Compose the report...', agent=writer)
|
|
||||||
|
|
||||||
# Form the crew with a sequential process
|
# Form the crew with a sequential process
|
||||||
report_crew = Crew(
|
report_crew = Crew(
|
||||||
@@ -83,4 +82,4 @@ CrewAI tracks token usage across all tasks and agents. You can access these metr
|
|||||||
1. **Order Matters**: Arrange tasks in a logical sequence where each task builds upon the previous one.
|
1. **Order Matters**: Arrange tasks in a logical sequence where each task builds upon the previous one.
|
||||||
2. **Clear Task Descriptions**: Provide detailed descriptions for each task to guide the agents effectively.
|
2. **Clear Task Descriptions**: Provide detailed descriptions for each task to guide the agents effectively.
|
||||||
3. **Appropriate Agent Selection**: Match agents' skills and roles to the requirements of each task.
|
3. **Appropriate Agent Selection**: Match agents' skills and roles to the requirements of each task.
|
||||||
4. **Use Context**: Leverage the context from previous tasks to inform subsequent ones
|
4. **Use Context**: Leverage the context from previous tasks to inform subsequent ones
|
||||||
|
|||||||
Reference in New Issue
Block a user