Merge pull request #9 from llxxxll/develop

Update README.md
This commit is contained in:
João Moura
2023-12-22 10:24:35 -03:00
committed by GitHub

View File

@@ -31,14 +31,17 @@ pip install crewai
2. **Setting Up Your Crew**: 2. **Setting Up Your Crew**:
```python ```python
import os
from crewai import Agent, Task, Crew, Process from crewai import Agent, Task, Crew, Process
os.environ["OPENAI_API_KEY"] = "Your Key"
# Define your agents with roles and goals # Define your agents with roles and goals
researcher = Agent( researcher = Agent(
role='Researcher', role='Researcher',
goal='Discover new insights', goal='Discover new insights',
backstory="You're a world class researcher working on a major data science company", backstory="You're a world class researcher working on a major data science company",
verbose=True verbose=True,
allow_delegation=False allow_delegation=False
# llm=OpenAI(temperature=0.7, model_name="gpt-4"). It uses langchain.chat_models, default is GPT4 # llm=OpenAI(temperature=0.7, model_name="gpt-4"). It uses langchain.chat_models, default is GPT4
) )
@@ -46,7 +49,7 @@ writer = Agent(
role='Writer', role='Writer',
goal='Create engaging content', goal='Create engaging content',
backstory="You're a famous technical writer, specialized on writing data related content", backstory="You're a famous technical writer, specialized on writing data related content",
verbose=True verbose=True,
allow_delegation=False allow_delegation=False
) )