INNER CODE UNIT · Python
__init__
rohitg00/awesome-ai-apps · multi-agent-teams/content-creation-team/app.py:23
def __init__(self):
self.openai_api_key = os.getenv("OPENAI_API_KEY")
self.llm = None
self.crew = None
self.projects = []
self.team_performance = []
def initialize_team(self, api_key):
try:
self.llm = OpenAI(
openai_api_key=api_key,
temperature=0.7,
model_name="gpt-3.5-turbo-instruct"
)
self.research_agent = Agent(
role='Content Researcher',
goal='Conduct thorough research and gather accurate information for content creation',