Skip to content

Commit 133fd10

Browse files
authored
Merge pull request crewAIInc#9 from llxxxll/develop
Update README.md
2 parents db01df6 + dfddb83 commit 133fd10

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,25 @@ pip install crewai
3131
2. **Setting Up Your Crew**:
3232

3333
```python
34+
import os
3435
from crewai import Agent, Task, Crew, Process
3536

37+
os.environ["OPENAI_API_KEY"] = "Your Key"
38+
3639
# Define your agents with roles and goals
3740
researcher = 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
)
4548
writer = 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

0 commit comments

Comments
 (0)