0
0
Agentic AIml~10 mins

CrewAI for multi-agent teams in Agentic AI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to initialize a CrewAI multi-agent team with a given name.

Agentic AI
team = CrewAI([1])
Drag options to blanks, or click blank then click option'
ANone
B"AlphaTeam"
CTrue
D42
Attempts:
3 left
💡 Hint
Common Mistakes
Passing a number instead of a string.
Using a boolean value.
Passing None instead of a string.
2fill in blank
medium

Complete the code to add an agent named 'Scout' to the CrewAI team.

Agentic AI
team.add_agent([1])
Drag options to blanks, or click blank then click option'
A"Scout"
BScout
Cagent_Scout
DScout()
Attempts:
3 left
💡 Hint
Common Mistakes
Passing the name without quotes.
Passing a variable or function call instead of a string.
3fill in blank
hard

Fix the error in the code to start the CrewAI team execution.

Agentic AI
team.[1]()
Drag options to blanks, or click blank then click option'
Astart
Bexecute
Crun
Dlaunch
Attempts:
3 left
💡 Hint
Common Mistakes
Using run() which is not defined.
Using execute() or launch() which are invalid methods.
4fill in blank
hard

Fill both blanks to create a dictionary mapping agent names to their roles.

Agentic AI
roles = {"Scout": [1], "Builder": [2]
Drag options to blanks, or click blank then click option'
A"explorer"
B"constructor"
C"leader"
D"support"
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up roles between agents.
Using invalid role names.
5fill in blank
hard

Fill all three blanks to define a function that assigns tasks to agents based on their role.

Agentic AI
def assign_task(agent):
    if agent.role == [1]:
        return [2]
    else:
        return [3]
Drag options to blanks, or click blank then click option'
A"explorer"
B"map the area"
C"build structures"
D"support"
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping tasks for roles.
Using incorrect string quotes.