Skip to content

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.

Added expected_output field to tasks to prevent ValidationError from Pydantic (#1971)

Juan Figueraea64c29fee8a
diff --git a/docs/how-to/multimodal-agents.mdx b/docs/how-to/multimodal-agents.mdx
index b3bebbc81..d59b6da5a 100644
--- a/docs/how-to/multimodal-agents.mdx
+++ b/docs/how-to/multimodal-agents.mdx
@@ -45,6 +45,7 @@ image_analyst = Agent(
# Create a task for image analysis
task = Task(
description="Analyze the product image at https://example.com/product.jpg and provide a detailed description",
+ expected_output="A detailed description of the product image",
agent=image_analyst
)
@@ -81,6 +82,7 @@ inspection_task = Task(
3. Compliance with standards
Provide a detailed report highlighting any issues found.
""",
+ expected_output="A detailed report highlighting any issues found",
agent=expert_analyst
)