File size: 722 Bytes
93e5d93
 
 
8e9f35a
 
074a596
619fc35
e8f9166
8e9f35a
 
 
e57c533
8e9f35a
 
 
e57c533
 
 
a5f9d4e
e57c533
e8f9166
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from crewai import Crew, Process
from langchain_openai import ChatOpenAI

from agents import get_content_planner_agent, get_content_writer_agent, get_editor_agent
from tasks import get_content_planning_task, get_content_writing_task, get_editing_task

def get_crew():
    return Crew(
        agents=[get_content_planner_agent(), 
                get_content_writer_agent(), 
                get_editor_agent()],
        
        tasks=[get_content_planning_task(), 
               get_content_writing_task(), 
               get_editing_task()],
        
        manager_llm=ChatOpenAI(model="gpt-3.5-turbo", 
                               temperature=0.7),
        process=Process.sequential,
        verbose=True
    )