Learn Before
Example of an LLM-Generated Tool Call
Following a prompt that enables tool use, a Large Language Model can generate a specific, structured command to execute an external tool. For instance, to answer the question about the 2028 Olympics, the model might produce the following tool call: {tool: web-search, query: "2028 Olympics"}.
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
Example of an LLM-Generated Tool Call
A user wants to ask a language model, which has access to a live weather tool, for the current temperature in London. Which of the following prompts is best structured to ensure the model uses its tool to get the real-time information?
Improving a Prompt for Tool Use
Diagnosing a Failed Tool-Use Prompt
Learn After
Executing Tool Calls and Integrating Results in LLMs
A user asks a large language model, 'What is the current stock price of ExampleCorp (ticker: EXM)?'. The model has access to a tool designed to fetch stock prices which requires a company's ticker symbol. Which of the following represents the most appropriate and correctly structured command the model would generate to use this tool?
Evaluating LLM Tool Use Efficiency
Constructing a Tool Call for a Calendar API