Chapter 5. Tool Usage, Learning, and Protocols
The tool module is such an interesting module for augmenting your LLM and generating autonomous behavior in agents. By themselves, regular LLMs are nothing more than functions that take in some text and output some text. Although that creates interesting chatbots, they cannot yet interact with their environment. Tools, in the form of functions and APIs, allow LLMs to step into the real world and interact with any system exposed to the LLM, ranging from codebases and internal tools to online databases and even home assistants.
A key trait that defines an agent is its ability to autonomously search for, select, and utilize tools, allowing it to interact with and influence its environment. With enough capabilities, agents can even create their own set of tools to use. Generally, tools allow an LLM to take action and interact with the external environment or extract data and use external applications (see Figure 5-1). The benefit of tools is not contained ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access