APX AI
Online
So far, we have examined how LLM agents are defined and how they utilize core components like Large Language Models, tools, and memory. We've also walked through creating a very basic agent. Now, we turn our attention to a more dynamic aspect of agent behavior: how they decide what to do and in what order. For an agent to be truly useful beyond single-step operations, it needs a mechanism to formulate and follow a plan to achieve a given objective.
This chapter introduces foundational approaches to agent planning and execution. You will learn about:
By working through these topics, you'll gain an understanding of how to structure an agent's thinking process, enabling it to approach and carry out sequences of actions to reach a specified goal.
5.1 What is Agent Planning?
5.2 Guiding Agent Reasoning with Chain-of-Thought
5.3 Introducing the ReAct Approach
5.4 Setting Clear Objectives for Agents
5.5 Decomposing Complex Tasks
5.6 Tracking Task Execution
5.7 Managing Basic Execution Failures
5.8 Practice: Building a ReAct Agent for Sequential Tasks