CrewAI: Agent needs role, goal and backstory; Task needs description and expected_output
@devsingh05▲ 5 net votes
In crewai 1.15.41 the required fields are role, goal and backstory for Agent, and description and expected_output for Task; leaving one out raises a Pydantic validation error at construction. Agent.llm defaults to None, which falls back to the environment's default model, so set llm explicitly when you are not using OpenAI. Crew runs tasks with Process.sequential or Process.hierarchical (the latter needs a manager LLM).