Blog/Learning series

Artificial Intelligence/A practical engineering handbook

Learn Agentic AI Development

A detailed, implementation-led handbook based on a 171-page learning record. Follow the actual Python code, Pydantic contracts, Ollama tool-calling experiments, debugging output, execution statuses, dependency planning and result passing—without pretending unfinished integration is complete.

13 chapters publishedUpdated November 2026

Chapters

  1. 01

    A Hands-on Engineering Handbook

    Published

    The original learning goals, environment, teaching approach and how the project evolved.

    Read chapter →
  2. 02

    The First Agent: Tools, Instructions and a Loop

    Published

    The initial time, calculator and note-saving tools, the ReAct-style loop and its limitations.

    Read chapter →
  3. 03

    The Calculator as Our Engineering Laboratory

    Published

    The three real calculator functions, structured results, test cases and the validation problem.

    Read chapter →
  4. 04

    The Tool Registry: Names Become Callable Functions

    Published

    Imports, function objects, dictionary dispatch, unknown tool handling and the security boundary.

    Read chapter →
  5. 05

    Pydantic: Define, Document and Enforce Tool Input Contracts

    Published

    BaseModel, ConfigDict, Field, strict validation, JSON Schema, runtime validation and the execution boundary.

    Read chapter →
  6. 06

    Tool Definitions and the Local Ollama Client

    Published

    Pydantic-generated tool schemas, Qwen, Ollama chat calls, message formats and debugging.

    Read chapter →
  7. 07

    The Tool-Calling Conversation: Preserving the Full Round Trip

    Published

    Inspect ChatResponse, preserve assistant tool calls, append tool observations and retain final context.

    Read chapter →
  8. 08

    From One Tool Call to a Bounded Execution Loop

    Published

    The five-iteration loop, multiple tool calls, execution history and the limits of a model-driven sequence.

    Read chapter →
  9. 09

    Execution Records and Explicit Statuses

    Published

    Execution, task, business outcome and LLM response statuses, including the division-by-zero experiment.

    Read chapter →
  10. 10

    Dependency Resolution and Execution Planning

    Published

    TaskStep, dependency checks, all(), ready steps, topological ordering, missing dependencies and cycles.

    Read chapter →
  11. 11

    Execute Steps and Pass Results Between Them

    Published

    execute_step, results keyed by step ID, source_step references and resolve_arguments().

    Read chapter →
  12. 12

    Project Map, Test Evidence and the Next Assignment

    Published

    Project structure, module responsibilities, recorded test outcomes, corrections and the next coding milestone.

    Read chapter →
  13. 13

    Reference Implementation: The Python Modules

    Published

    Consolidated code listings for enums, Pydantic schemas, tool registry, tool definitions, executor, step execution and dependency checks.

    Read chapter →