ApX logoApX logo
ModelsCalculatorHardwareCoursesPricing
ApX logoApX logo
ModelsCalculatorHardwareCoursesPricing

All Courses

Getting Started with Kerb Toolkit
Chapter 1: Introduction and First Text Generation
Course Overview and Setup
Principles of the Toolkit
Configuring LLM Providers
Executing Your First Generation Call
Handling Streaming Responses
Chapter 2: Advanced Prompting Techniques
Introduction to Prompt Engineering
Creating Dynamic Prompts with the Template Engine
Managing and Versioning Prompts
Implementing Few-Shot Prompting
Extracting Structured Data from LLM Outputs
Parsing JSON and Code Snippets
Chapter 3: Managing Context and Tokens
The Importance of the Context Window
Counting Tokens with the Tokenizer
Strategies for Text Truncation
Managing Token Budgets for Complex Prompts
Chapter 4: Preparing Data for Retrieval
Data Loading Fundamentals
Loading Documents from Different Sources
The Rationale Behind Text Chunking
Applying Chunking Strategies
Text Preprocessing for Better Retrieval
Chapter 5: Embeddings and Semantic Search
Understanding Text Embeddings
Generating Embeddings
Fundamentals of Vector Similarity
Performing Semantic Search
Choosing an Embedding Model
Chapter 6: Building Retrieval-Augmented Generation (RAG) Systems
Anatomy of a RAG System
Creating a Simple Retrieval Pipeline
Implementing Different Search Methods
Improving Relevance with Re-ranking
Managing Retrieved Context for Generation
Chapter 7: Building Conversational Applications with Memory
The Challenge of Stateful Conversations
Implementing Conversation Buffer Memory
Using Summary Memory for Long Conversations
Tracking Entities Across a Conversation
Chapter 8: Developing Autonomous Agents
Introduction to LLM Agents
The ReAct Pattern for Reasoning and Acting
Building a ReAct Agent
Defining and Using Tools
Implementing Plan-and-Execute Agents
Orchestrating Multi-Agent Systems
Chapter 9: Optimizing for Performance and Cost
Identifying Performance Bottlenecks
Implementing LLM Response Caching
Caching Embeddings to Reduce API Calls
Cache Invalidation Strategies
Chapter 10: Ensuring Application Safety and Reliability
Adding Safety Guardrails to Applications
Implementing Content Moderation
Detecting and Masking Personal Information
Introduction to Testing LLM Applications
Using Mocks for Deterministic Tests
Chapter 11: Advanced Capabilities
Processing Image Inputs with Multimodal Models
Benchmarking LLM Outputs with Evaluation Metrics
Preparing Datasets for Fine-Tuning

Chapter 8: Developing Autonomous Agents

So far, we have used LLMs for direct, single-turn tasks like generating text or answering a question based on provided context. This chapter moves into building systems that can operate with more autonomy to achieve a goal. An autonomous agent uses an LLM as a reasoning engine to determine a sequence of steps, often interacting with external tools to gather information or perform actions. The process can be represented as a loop of thought, action, and observation.

In this chapter, you will learn to build these agents with the agent module. We will start by covering the ReAct (Reasoning and Acting) pattern, a common framework for structuring agent behavior. You will then implement a ReAct agent and learn how to provide it with tools, such as a search function or a simple calculator, to extend its capabilities. The core loop can be simplified to the following sequence:

Goal→Thought→Action→Observation→…\text{Goal} \rightarrow \text{Thought} \rightarrow \text{Action} \rightarrow \text{Observation} \rightarrow \dotsGoal→Thought→Action→Observation→…

Next, we will cover an alternative architecture known as a plan-and-execute agent. Finally, we will discuss the principles for building systems where multiple agents can collaborate to solve more complex problems. By the end of this chapter, you will be able to construct agents that can break down a problem, use tools to find solutions, and act on your behalf.

Sections

  • 8.1 Introduction to LLM Agents

  • 8.2 The ReAct Pattern for Reasoning and Acting

  • 8.3 Building a ReAct Agent

  • 8.4 Defining and Using Tools

  • 8.5 Implementing Plan-and-Execute Agents

  • 8.6 Orchestrating Multi-Agent Systems

© 2026 ApX Machine Learning