Learn Agentic Engineering

Fifteen modules from fundamentals to production. Every lesson: what it is, how it works, when to use it, when not to, failure modes, tradeoffs — and an interactive where the concept is mechanical.

Fundamentals

What makes a system agentic, the agent loop, and what agentic engineers actually build.

Agent Architecture

Single agent, agent + RAG, supervisor, workflow graphs — and the tradeoffs between them.

Tool Calling

Schemas, structured arguments, validation, errors, retries, permissions.

Tool Calling Basics
▶ interactive

The model emits a structured request to call a function; your application executes it and feeds the result back — the model never runs anything itself.

Tool Schemas

The name, description and JSON schema of a tool are the only documentation the model ever reads — write them like an API contract, not a comment.

Structured Outputs

Constrain the model to emit JSON that matches a schema, then parse it into typed objects — the right abstraction when you need data, not actions.

Argument Validation

Model-generated arguments are untrusted input from a probabilistic source — validate types, ranges, allow-lists and paths before execution, and feed violations back as re-prompts.

Tool Errors, Retries and Timeouts

Classify tool failures as retryable or not, retry with exponential backoff and jitter under a timeout, and surface the rest to the model as observations it can reason about.

Idempotency

In an at-least-once world, a tool with side effects must be safe to call twice with the same arguments — idempotency keys make retries and re-runs harmless.

Parallel vs Sequential Tool Calls

Run independent tool calls concurrently and dependent ones in order — a dependency graph, a fan-out limit, and deterministic result ordering keep it fast and debuggable.

Tool Permissions and Least Privilege

Give each tool the narrowest scope that does the job, separate reads from writes, act with the user's delegated authority, and gate destructive actions behind confirmation, sandboxes and audit logs.

RAG Engineering

Ingestion, embeddings, storage, retrieval, reranking, grounding, evaluation.

RAG Overview
▶ interactive

Retrieval-Augmented Generation fetches relevant passages at query time and puts them in the prompt so the model answers from evidence instead of from memory.

Ingestion: Parsing & Chunking

Turning raw files into clean, well-bounded, well-labelled chunks is where most RAG quality is won or lost.

Embeddings

An embedding model maps text to a vector so that semantically similar texts land close together; retrieval becomes nearest-neighbour search.

Vector Storage

Where embeddings live: a plain database with a vector column, a dedicated vector store, or a search engine — and the ANN indexes that make nearest-neighbour search fast.

Dense, Sparse & Hybrid Retrieval

Dense vectors capture meaning; BM25 captures exact terms; hybrid retrieval fuses both so neither paraphrases nor identifiers are missed.

Metadata Filtering

Restricting retrieval by tenant, permission, recency, or type is done with metadata filters — and where the filter runs decides both correctness and recall.

Reranking

A reranker re-scores a small candidate set with a more expensive model so the few chunks that reach the LLM are the right ones — it fixes precision, not recall.

Context Construction & Grounding

Turning ranked chunks into a prompt: order, deduplicate, fit the token budget, and instruct the model to answer only from what it was given — or to say it cannot.

Citations

A citation is a verifiable pointer from a claim to a retrieved span; the system, not the model, must check that it points at real text.

RAG Evaluation

Measure retrieval and generation separately: recall@k, precision, MRR for the retriever; faithfulness and answer correctness for the generator — on a golden set you built from real queries.

Context Engineering

Constructing the information an agent sees: selection, compression, ordering, budgets.

Memory & State

Context vs short-term vs long-term; semantic, episodic, procedural; why more is not better.

Planning

Direct execution, plan-then-execute, replanning, ReAct — and when planning only adds cost.

MCP — Model Context Protocol

Clients, servers, tools, resources, prompts, discovery, auth; MCP vs direct integration.

Multi-Agent Systems

Supervisor, pipeline, hierarchical, swarm; agent-to-agent communication; when it is unnecessary complexity.

Human-in-the-Loop

Approval gates, risk assessment, escalation, confidence thresholds.

Evaluation & Testing

Testing probabilistic systems: golden datasets, judges, deterministic evaluators, regression.

Observability

Traces, spans, tokens, cost, latency, errors, state changes.

Guardrails & Security

Prompt injection, tool misuse, exfiltration, least privilege, input/output guardrails.

Reliability Engineering

Failure scenarios and their mitigations: retries, fallbacks, limits, budgets, caching.

Frameworks

What each framework solves, its abstraction level, weaknesses — and Option 0: no framework.