Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion crew-ai/src/marketing_posts/crew.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ class Copy(BaseModel):
body: str = Field(..., description="Body of the copy")


class Copies(BaseModel):
"""Marketing copy collection model"""

title: str = Field(..., description="Title for the set of marketing copies")
copies: List[Copy] = Field(..., description="List of marketing copies")


@CrewBase
class MarketingPostsCrew:
"""MarketingPosts crew"""
Expand Down Expand Up @@ -112,7 +119,7 @@ def copy_creation_task(self) -> Task:
config=self.tasks_config["copy_creation_task"], # type: ignore
agent=self.creative_content_creator(),
context=[self.marketing_strategy_task(), self.campaign_idea_task()],
output_json=Copy,
output_json=Copies,
)

@crew
Expand Down