0
0
Agentic AIml~10 mins

Workflow orchestration across agents 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 workflow orchestrator with a list of agents.

Agentic AI
orchestrator = WorkflowOrchestrator(agents=[1])
Drag options to blanks, or click blank then click option'
Aagent1, agent2, agent3
B'agent1, agent2, agent3'
C{'agent1', 'agent2', 'agent3'}
D['agent1', 'agent2', 'agent3']
Attempts:
3 left
💡 Hint
Common Mistakes
Passing agents as a single string instead of a list.
Using curly braces which create a set, not a list.
2fill in blank
medium

Complete the code to add a task to the orchestrator's workflow.

Agentic AI
orchestrator.add_task([1])
Drag options to blanks, or click blank then click option'
A['data_cleaning']
Bdata_cleaning
C'data_cleaning'
D{'data_cleaning'}
Attempts:
3 left
💡 Hint
Common Mistakes
Passing task name without quotes causing a NameError.
Passing a list or set instead of a string.
3fill in blank
hard

Fix the error in the code to execute the workflow and get results.

Agentic AI
results = orchestrator.[1]()
Drag options to blanks, or click blank then click option'
Arun
Bexecute
Cstart
Dlaunch
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'run()' which is not defined in the orchestrator.
Using 'start()' or 'launch()' which are invalid method names.
4fill in blank
hard

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

Agentic AI
status_map = [1]: [2] for [1] in agents
Drag options to blanks, or click blank then click option'
Aagent
Bget_status(agent)
Cstatus
Dagent_status
Attempts:
3 left
💡 Hint
Common Mistakes
Using the same variable name for key and value without function call.
Using undefined variables like 'status' or 'agent_status'.
5fill in blank
hard

Fill all three blanks to filter tasks that are completed and create a list of their names.

Agentic AI
completed_tasks = [task[1] for task in tasks if task.status [2] 'completed' and task.priority [3] 1]
Drag options to blanks, or click blank then click option'
A.name
B==
C<=
D!=
Attempts:
3 left
💡 Hint
Common Mistakes
Using '!=' instead of '==' for status check.
Using wrong comparison operators for priority.
Forgetting to access the task name with '.name'.