Building AI Agents: Tool Use, RAG and Multi-Agent Systems
Master production AI agents: tool use, RAG, multi-agent orchestration, safety, and deployment with Python and TypeScript.

About this course
You know LLMs. Now build agents that actually work in production.
Most AI agents fail because they hallucinate, waste money on tokens, or break under load. This course teaches you to ship reliable, cost-controlled agents that solve real problems.
You’ll learn function calling and structured outputs to ground LLM reasoning in deterministic logic. You’ll design RAG pipelines that reduce hallucination and ground agents in your data. You’ll orchestrate multiple specialized agents with planning loops and memory. You’ll evaluate performance, control costs, defend against prompt injection, and deploy as a scalable service with observability.
By the end, you’ll have built and shipped a live multi-agent system—customer support, research, or data analysis—with tool integration, RAG, multi-agent routing, cost tracking, and production monitoring.
For developers and technical founders who ship Python or TypeScript services and want to move beyond toy chatbots to production AI agents.
What you will be able to do
- Can implement function calling and structured outputs to ground LLM responses in deterministic logic
- Can design and build a RAG pipeline: chunking, embedding, vector storage, retrieval, and reranking
- Can architect multi-agent systems with planning loops, memory, and handoff protocols
- Can evaluate agent performance with metrics (accuracy, latency, cost per call) and build harnesses
- Can deploy an agent as a scalable service with observability, rate limiting, and cost tracking
- Can defend against prompt injection, jailbreaks, and unsafe outputs with validation layers
- Can integrate real tools: APIs, databases, code execution, web search, and knowledge bases
Curriculum
1Foundations u2013 LLM Capabilities and Limits
- LLM APIs and token economics
- Hallucination, reasoning gaps, and when agents help
- The planning loop, tool use, and memory
2Tool Use and Function Calling
- OpenAI, Anthropic, and open-source function schemas
- Forcing JSON responses and validating agent decisions
- Wrapping APIs, databases, and code execution safely
- Sequential, parallel, and conditional tool chains
3Retrieval-Augmented Generation (RAG)
- Semantic, sliding-window, and recursive chunking
- Choosing models, dimensionality, and similarity search
- Pinecone, Weaviate, Milvus, and local alternatives
- BM25, dense retrieval, and cross-encoder reranking
- Measuring retrieval quality and end-to-end accuracy
4Memory, Planning, and Multi-Agent Orchestration
- Short-term, long-term, and episodic memory patterns
- ReAct, chain-of-thought, and tree-of-thought
- Hierarchical, peer-to-peer, and market-based orchestration
- Routing decisions, context passing, and state management
5Evaluation, Cost Control, and Observability
- Unit tests for agents, golden datasets, and metrics
- Token budgets, caching, batching, and model selection
- Tracing agent calls, debugging failures, and monitoring drift
6Safety, Security, and Deployment
- Attack vectors and input validation strategies
- Filtering unsafe responses and enforcing constraints
- FastAPI, async patterns, rate limiting, and scaling
- Monitoring, alerting, cost tracking, and user feedback loops
7Capstone u2013 Build and Ship a Multi-Agent Service
- Design and deploy a live multi-agent system
Taught by Block Relations
Research & Education · Built for a full-stack engineer or technical founder who ships Python/TypeScript services, understands LLM basics (prompts, tokens, APIs), and wants to architect agents that reliably solve real problems—not toy chatbots. They need to reduce hallucination, control costs, orchestrate multiple specialized agents, and deploy safely to production.
Free
Free
Free