From ea64c29fee8a1932fb47c13d20622c85776e4f33 Mon Sep 17 00:00:00 2001 From: Juan Figuera Date: Tue, 4 Feb 2025 16:49:29 -0500 Subject: [PATCH] Added expected_output field to tasks to prevent ValidationError from Pydantic (#1971) Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com> --- docs/how-to/multimodal-agents.mdx | 2 ++ 1 file changed, 2 insertions(+) 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 )