mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 16:48:30 +00:00
adding allow_delegation=False to the readme example
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user