faizee07 commited on
Commit
025d186
·
verified ·
1 Parent(s): 8a3bcb6

Create crews/agents.py

Browse files
Files changed (1) hide show
  1. crews/agents.py +42 -0
crews/agents.py ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from crewai import Agent
2
+ from langchain_openai import ChatOpenAI
3
+ from config.settings import settings
4
+
5
+ # Configure OpenRouter LLM
6
+ llm = ChatOpenAI(
7
+ model=settings.openrouter_model,
8
+ api_key=settings.openrouter_api_key,
9
+ base_url="https://openrouter.ai/api/v1"
10
+ )
11
+
12
+ content_writer_agent = Agent(
13
+ role="Social Media Content Writer",
14
+ goal="Transform RSS feed content into engaging Instagram posts",
15
+ backstory="""You are an expert social media content creator specializing in Instagram.
16
+ You know how to craft compelling captions, select trending hashtags, and create
17
+ engaging carousel content that drives engagement.""",
18
+ llm=llm,
19
+ verbose=True,
20
+ allow_delegation=False
21
+ )
22
+
23
+ image_prompt_agent = Agent(
24
+ role="Visual Content Designer",
25
+ goal="Create detailed image generation prompts for Instagram posts",
26
+ backstory="""You are a creative director with expertise in visual storytelling.
27
+ You excel at writing detailed, specific prompts that generate eye-catching,
28
+ on-brand images for social media.""",
29
+ llm=llm,
30
+ verbose=True,
31
+ allow_delegation=False
32
+ )
33
+
34
+ quality_assurance_agent = Agent(
35
+ role="Content Quality Assurance Specialist",
36
+ goal="Ensure content meets Instagram best practices and brand guidelines",
37
+ backstory="""You are a meticulous QA specialist who ensures all content
38
+ meets platform requirements, brand voice, and engagement optimization.""",
39
+ llm=llm,
40
+ verbose=True,
41
+ allow_delegation=False
42
+ )