0
0
Agentic AIml~10 mins

Defining tool schemas and descriptions 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 define a tool schema with a name.

Agentic AI
tool_schema = {"name": "[1]"}
Drag options to blanks, or click blank then click option'
AToolOne
Bdescription
Ctool_name
Dschema
Attempts:
3 left
💡 Hint
Common Mistakes
Using a key instead of a string value for the name.
Leaving the value empty or not a string.
2fill in blank
medium

Complete the code to add a description field to the tool schema.

Agentic AI
tool_schema = {"name": "ToolOne", "description": "[1]"}
Drag options to blanks, or click blank then click option'
AToolOne
Btool_description
Cdescription
DThis tool performs data cleaning
Attempts:
3 left
💡 Hint
Common Mistakes
Using a key name instead of a descriptive string.
Leaving the description empty.
3fill in blank
hard

Fix the error in the tool schema definition by completing the missing field.

Agentic AI
tool_schema = {"name": "ToolOne", "description": "Data cleaning tool", "parameters": [1]
Drag options to blanks, or click blank then click option'
A[]
BNone
C{}
D''
Attempts:
3 left
💡 Hint
Common Mistakes
Using a list [] instead of a dictionary for parameters.
Using None or empty string which are invalid here.
4fill in blank
hard

Fill both blanks to define a tool schema with a name and a list of supported actions.

Agentic AI
tool_schema = {"name": "[1]", "actions": [2]
Drag options to blanks, or click blank then click option'
ADataCleaner
B["clean", "validate"]
C["run", "stop"]
DToolActions
Attempts:
3 left
💡 Hint
Common Mistakes
Using a string instead of a list for actions.
Using an invalid name or variable instead of a string.
5fill in blank
hard

Fill all three blanks to define a tool schema with name, description, and parameters.

Agentic AI
tool_schema = {"name": "[1]", "description": "[2]", "parameters": [3]
Drag options to blanks, or click blank then click option'
AModelTrainer
BTrains machine learning models
C{"epochs": 10, "batch_size": 32}
D{"learning_rate": 0.01}
Attempts:
3 left
💡 Hint
Common Mistakes
Using a list instead of a dictionary for parameters.
Mixing up description and name fields.