What does the model see when it decides which tool to call?
- Exam domain
- LangChain for AI agents
- Difficulty
- Easy
- In this mock
- 5 questions on this domainPractise this domain
Why D is the answer
The tool's name, description and arguments
Tools are described to the model by name, a description of when to use them, and a schema for their arguments. Clear descriptions are what make tool choice reliable.
Remember: Tool choice runs on name, description and schema.
In detail
- Name, description, argument schema.
- Better descriptions, better tool choice.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. The logs of every earlier run of the toolWrong
Run history is not sent with the tool list.
B. The unit tests written for each toolWrong
Tests are for developers, not the model.
C. The full source code of each tool functionWrong
The model never sees the function body.
D. The tool's name, description and argumentsRight
Tool choice runs on name, description and schema.
Use case
An illustrative scenario, not a real incident.
Illustrative: an agent keeps calling the wrong search tool until the team rewrites both tool descriptions.
See it in different ways
mindmap
root(("Tool"))
n1["Name"]
n2["Unique"]
n3["Description"]
n4["When to use it"]
n5["Schema"]
n6["Arguments and types"]How to read this chart
- The centre is "Tool".
- "Name" covers "Unique".
- "Description" covers "When to use it".
- "Schema" covers "Arguments and types".
flowchart TD
Q{"Does a description match the request?"}
Q -->|"Yes"| A0["Call that tool"]
Q -->|"No"| A1["Answer or ask"]How to read this chart
- At "Does a description match the request?": if "Yes", go to "Call that tool"; if "No", go to "Answer or ask".