0
0
Agentic AIml~10 mins

Agent perception-reasoning-action loop 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 capture the agent's perception from the environment.

Agentic AI
perception = environment.[1]()
Drag options to blanks, or click blank then click option'
Aact
Blearn
Csense
Ddecide
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'act' instead of 'sense' because acting happens after perceiving.
2fill in blank
medium

Complete the code to let the agent reason and decide an action based on perception.

Agentic AI
action = agent.[1](perception)
Drag options to blanks, or click blank then click option'
Aobserve
Bsense
Cexecute
Ddecide
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'sense' again instead of reasoning step.
3fill in blank
hard

Fix the error in the code to perform the agent's action in the environment.

Agentic AI
environment.[1](action)
Drag options to blanks, or click blank then click option'
Asense
Bact
Cdecide
Dthink
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'decide' or 'sense' instead of performing the action.
4fill in blank
hard

Fill both blanks to complete the agent loop: perception and action.

Agentic AI
perception = environment.[1]()
action = agent.[2](perception)
Drag options to blanks, or click blank then click option'
Asense
Bdecide
Cact
Dobserve
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the order of sensing and deciding.
5fill in blank
hard

Fill all three blanks to complete the full agent loop: perception, reasoning, and action.

Agentic AI
perception = environment.[1]()
action = agent.[2](perception)
environment.[3](action)
Drag options to blanks, or click blank then click option'
Asense
Bdecide
Cact
Dobserve
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the order or using wrong method names.