File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,22 +31,25 @@ pip install crewai
31312 . ** Setting Up Your Crew** :
3232
3333``` python
34+ import os
3435from crewai import Agent, Task, Crew, Process
3536
37+ os.environ[" OPENAI_API_KEY" ] = " Your Key"
38+
3639# Define your agents with roles and goals
3740researcher = Agent(
3841 role = ' Researcher' ,
3942 goal = ' Discover new insights' ,
4043 backstory = " You're a world class researcher working on a major data science company" ,
41- verbose = True
44+ verbose = True ,
4245 allow_delegation = False
4346 # llm=OpenAI(temperature=0.7, model_name="gpt-4"). It uses langchain.chat_models, default is GPT4
4447)
4548writer = Agent(
4649 role = ' Writer' ,
4750 goal = ' Create engaging content' ,
4851 backstory = " You're a famous technical writer, specialized on writing data related content" ,
49- verbose = True
52+ verbose = True ,
5053 allow_delegation = False
5154)
5255
You can’t perform that action at this time.
0 commit comments