adding allow_delegation=False to the readme example

This commit is contained in:
Joao Moura
2023-12-18 01:09:34 -03:00
parent 4c3902b018
commit f6e166aa5c

View File

@@ -38,6 +38,7 @@ researcher = Agent(
goal='Discover new insights',
backstory="You're a world class researcher working on a major data science company",
verbose=True
allow_delegation=False
# llm=OpenAI(temperature=0.7, model_name="gpt-4"). It uses langchain.chat_models, default is GPT4
)
writer = Agent(
@@ -45,7 +46,7 @@ writer = Agent(
goal='Create engaging content',
backstory="You're a famous technical writer, specialized on writing data related content",
verbose=True
delegate=False # This agent can delegate tasks to other agents
allow_delegation=False
)
# Create tasks for your agents