0
0
Agentic AIml~10 mins

Agent roles and specialization 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 assign the role of an agent.

Agentic AI
agent.role = '[1]'
Drag options to blanks, or click blank then click option'
Aexecutor
Bgeneralist
Cobserver
Dspecialist
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'specialist' when the agent needs to handle multiple tasks.
Using 'executor' which is more about action than role definition.
2fill in blank
medium

Complete the code to define an agent's specialization.

Agentic AI
agent.specialization = '[1]'
Drag options to blanks, or click blank then click option'
Adata_analysis
Bcommunication
Cnavigation
Dall_tasks
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'all_tasks' which implies no specialization.
Selecting 'communication' when the focus is on data.
3fill in blank
hard

Fix the error in the code to correctly assign an agent's role.

Agentic AI
agent.role = [1]
Drag options to blanks, or click blank then click option'
A'specialist'
Bgeneralist
C"generalist"
Dspecialist
Attempts:
3 left
💡 Hint
Common Mistakes
Assigning role without quotes causing a NameError.
Using double quotes inconsistently.
4fill in blank
hard

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

Agentic AI
role_specialization = {'[1]': 'data_analysis', '[2]': 'navigation'}
Drag options to blanks, or click blank then click option'
Aspecialist
Bgeneralist
Cexecutor
Dobserver
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing roles and specializations incorrectly.
Using 'generalist' for a specific specialization.
5fill in blank
hard

Fill all three blanks to create a function that assigns roles and specializations to agents.

Agentic AI
def assign_agent(agent, role, specialization):
    agent.[1] = role
    agent.[2] = specialization
    return agent.[3]
Drag options to blanks, or click blank then click option'
Arole
Bspecialization
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing attribute names for role and specialization.
Returning the wrong attribute.