0
0
Agentic AIml~10 mins

Test cases for tool-using 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 the agent with the correct tool.

Agentic AI
agent = Agent(tools=[[1]])
Drag options to blanks, or click blank then click option'
Asearch_tool
Btrain_model
Cdata_loader
Doptimizer
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'train_model' instead of a tool for searching.
Confusing data loader with a tool for the agent.
2fill in blank
medium

Complete the code to run the agent with the input query.

Agentic AI
response = agent.[1](input_query)
Drag options to blanks, or click blank then click option'
Atrain
Bsave
Cload
Drun
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'train' which is for model training, not running the agent.
Using 'load' which is for loading data or models.
3fill in blank
hard

Fix the error in the agent's tool usage by completing the code.

Agentic AI
result = agent.tools[0].[1](query)
Drag options to blanks, or click blank then click option'
Aexecute
Btrain
Csearch
Dcompile
Attempts:
3 left
💡 Hint
Common Mistakes
Calling 'execute' which is not defined for the tool.
Using 'train' which is for model training.
4fill in blank
hard

Fill both blanks to correctly define the agent's tool and method call.

Agentic AI
agent = Agent(tools=[[1]])
output = agent.tools[0].[2](input_text)
Drag options to blanks, or click blank then click option'
Asearch_tool
Btrain_model
Csearch
Dcompile
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'train_model' as a tool when the agent needs a search tool.
Calling 'compile' which is not a valid method for the tool.
5fill in blank
hard

Fill all three blanks to correctly initialize the agent, run it, and get the result.

Agentic AI
agent = Agent(tools=[[1]])
response = agent.[2](query)
result = response.[3]
Drag options to blanks, or click blank then click option'
Asearch_tool
Brun
Coutput
Dtrain_model
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'train_model' instead of 'search_tool'.
Calling 'train' instead of 'run' to execute the agent.
Accessing a wrong attribute instead of 'output'.