PIXELBANKv8.2.1
Menu
Back to LLM Study Plan
Week 9-10

Chapter 9: LLM Agents & Tools

Transform LLMs from passive text generators into autonomous agents that can reason, plan, and take actions in the real world. Master tool use and function calling, the ReAct reasoning framework, multi-agent orchestration, memory architectures, and popular agent frameworks.

Chapter Overview

Language models on their own can only generate text. But when equipped with tools -- APIs, databases, code interpreters, web browsers -- they become agents capable of taking actions in the world. An LLM agent observes its environment, reasons about what to do, selects and executes tools, and iterates until the task is complete.

The key insight behind LLM agents is that language models are remarkably good at reasoning about when and how to use tools, even though they were trained only on text. Given a description of available tools and a task, an LLM can decompose the problem, select appropriate tools, format correct API calls, interpret results, and decide what to do next.

Tool use transforms LLMs from knowledge retrieval systems into action-taking systems. Instead of just answering "the weather in Tokyo is typically warm in July," an agent can call a weather API and report "it's currently 28C and sunny in Tokyo." Instead of explaining how to query a database, it can write and execute the SQL.

The ReAct (Reasoning + Acting) framework formalizes this into a loop: Thought (reason about the situation), Action (call a tool), Observation (interpret the result), repeat. This interleaving of reasoning and action enables complex multi-step problem solving.

Multi-agent systems take this further by having specialized agents collaborate. One agent might handle research, another coding, another review -- mimicking how human teams work.

This chapter covers:

  • Tool Use & Function Calling: How LLMs invoke external APIs and functions with structured arguments
  • ReAct Pattern: The Thought-Action-Observation loop for systematic problem solving
  • Multi-Agent Systems: Orchestrating multiple specialized agents for complex tasks
  • Memory & Context: Short-term and long-term memory architectures for persistent agents
  • Agent Frameworks: LangChain, LlamaIndex, CrewAI, and other tools for building agents

Chapter Roadmap

Click any topic to jump in

1
Tool Use & Function Calling

How LLMs invoke external APIs and functions with structured arguments to take actions.

Tool use inside reasoning loops and multi-agent coordination

From single tool calls to complex agent architectures

2
ReAct Pattern

The Thought-Action-Observation loop for systematic multi-step problem solving.

3
Multi-Agent Systems

Orchestrating multiple specialized agents that collaborate on complex tasks.

Memory and frameworks power production agents

The infrastructure that makes agents persistent and deployable

4
Memory & Context

Short-term, long-term, and working memory architectures for persistent agents.

5
Agent Frameworks

LangChain, LlamaIndex, CrewAI and other tools for building production agents.

Sign up to unlock this chapter

This chapter is part of PixelBank Premium. Create a free account, then upgrade to read the full lesson — concepts, walkthroughs, and exercises.