Building an Agent from First Principles
Build an AI agent from scratch in Python: tools, the observe-decide-act loop, state, planning, error handling, termination and verification.
Topic
Tool-calling systems and agents that act, with the guardrails they need.
Build an AI agent from scratch in Python: tools, the observe-decide-act loop, state, planning, error handling, termination and verification.
Beyond better prompts: how to design, assemble, optimize and manage the information an LLM needs to solve a task.
Bringing it all together: how to design caching as a first-class part of an AI system, from keys and versions to reliability, cost and rollout.
Agent state, plans, tool and API results, workflow steps, checkpoints, idempotent writes and scoped sharing: caching the work an agent does.
Caching for chat: conversation history, sessions, summaries, user memory, context fingerprints and responses, without leaking or going stale.
Caching for agents: tool results, workflow steps, state, checkpoints, MCP tools and resources, idempotency, and keeping it all safe.
KV, prompt, semantic, embedding, retrieval, reranking, tool, API, conversation and agent state caches: what each saves and how to key it safely.