Skip to content

Fix marketing copy structured output schema#156

Open
stuartmac wants to merge 1 commit intodocker:mainfrom
stuartmac:fix/crew-ai-marketing-copy-schema
Open

Fix marketing copy structured output schema#156
stuartmac wants to merge 1 commit intodocker:mainfrom
stuartmac:fix/crew-ai-marketing-copy-schema

Conversation

@stuartmac
Copy link
Copy Markdown

Summary

Fixed an output validation issue in the CrewAI marketing posts example.

When running the example, the pipeline consistently failed on the final step with the Creative Content Creator agent and raised a Pydantic ValidationError.

The final task generates multiple pieces of marketing copy, but the configured output schema only accepts a single Copy object.

Fix

Added a Copies wrapper model and updated copy_creation_task to use that schema instead, so the final output can include a list of copy text items.

The pipeline consistently completes, and I have not seen the validation error again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant