adding allow_delegation=False to the readme example

This commit is contained in:
Joao Moura
2023-12-18 01:09:34 -03:00
parent 0e09d38020
commit 7b6af93f63

View File

@@ -38,6 +38,7 @@ researcher = Agent(
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
# 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
) )
writer = Agent( writer = Agent(
@@ -45,7 +46,7 @@ writer = Agent(
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
delegate=False # This agent can delegate tasks to other agents allow_delegation=False
) )
# Create tasks for your agents # Create tasks for your agents