Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete 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'
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.
✗ Incorrect
The 'name' key should be assigned the tool's name as a string, like 'ToolOne'.
2fill in blank
mediumComplete 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using a key name instead of a descriptive string.
Leaving the description empty.
✗ Incorrect
The description should be a string explaining what the tool does.
3fill in blank
hardFix 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using a list [] instead of a dictionary for parameters.
Using None or empty string which are invalid here.
✗ Incorrect
The 'parameters' field should be a dictionary (empty or with keys) to define tool parameters.
4fill in blank
hardFill 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'
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.
✗ Incorrect
The name should be a string like 'DataCleaner' and actions a list of strings representing supported actions.
5fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using a list instead of a dictionary for parameters.
Mixing up description and name fields.
✗ Incorrect
The name is 'ModelTrainer', description explains the tool, and parameters is a dictionary with settings like learning rate.