0
0
Agentic AIml~10 mins

Why frameworks accelerate agent development in Agentic AI - Test Your Understanding

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

Complete the code to import the main framework module for agent development.

Agentic AI
import [1]
Drag options to blanks, or click blank then click option'
Amath
Bagent_framework
Crandom
Dos
Attempts:
3 left
💡 Hint
Common Mistakes
Importing unrelated modules like 'random' or 'os' instead of the framework.
2fill in blank
medium

Complete the code to create a new agent instance using the framework.

Agentic AI
agent = [1].Agent()
Drag options to blanks, or click blank then click option'
Aagent_framework
Bmath
Cos
Drandom
Attempts:
3 left
💡 Hint
Common Mistakes
Using unrelated modules like 'random' or 'os' to create an agent.
3fill in blank
hard

Fix the error in the code to run the agent's main loop.

Agentic AI
agent.[1]()
Drag options to blanks, or click blank then click option'
Arun
Bbegin
Cexecute
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' or 'execute' which are not valid methods for the agent.
4fill in blank
hard

Fill both blanks to define a simple agent behavior function and assign it.

Agentic AI
def behavior([1]):
    return [2]
agent.behavior = behavior
Drag options to blanks, or click blank then click option'
Ainput_data
B'action_taken'
Coutput
D'done'
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect parameter names or returning wrong values.
5fill in blank
hard

Fill all three blanks to create a dictionary mapping agent states to actions with a condition.

Agentic AI
actions = [1]: [2] for [3] in states if [3] != 'idle'
Drag options to blanks, or click blank then click option'
A{state
B'move'
Cstate
Dstates
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'states' as loop variable or missing the dictionary start brace.