AI agents often require access to external information or functionalities not directly available within the language model. To perform actions such as searching the web, executing computations, or interacting with databases, agents must be equipped to use tools. This chapter examines the prompt engineering techniques that enable AI agents to select, operate, and manage these external tools.
Specifically, you will gain understanding of:
Mastering these techniques will allow you to design prompts that significantly extend your agents' capabilities by connecting them to a wider range of resources and functions.
3.1 Principles of Tool-Augmented Language Models
3.2 Prompting Agents for Tool Selection and Operation
3.3 Formatting Tool Specifications for LLM Comprehension
3.4 Managing Tool Inputs and Outputs through Prompts
3.5 Prompts for Interacting with APIs
3.6 Addressing Errors During Tool Execution via Prompts
3.7 Designing Prompts for Novel Tool Integration
3.8 Hands-on: Guiding an Agent to Use a Web Search Tool
© 2025 ApX Machine Learning