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.
Chapters
- 018 min read
A Hands-on Engineering Handbook
PublishedThe original learning goals, environment, teaching approach and how the project evolved.
Read chapter → - 0212 min read
The First Agent: Tools, Instructions and a Loop
PublishedThe initial time, calculator and note-saving tools, the ReAct-style loop and its limitations.
Read chapter → - 0310 min read
The Calculator as Our Engineering Laboratory
PublishedThe three real calculator functions, structured results, test cases and the validation problem.
Read chapter → - 0410 min read
The Tool Registry: Names Become Callable Functions
PublishedImports, function objects, dictionary dispatch, unknown tool handling and the security boundary.
Read chapter → - 0518 min read
Pydantic: Define, Document and Enforce Tool Input Contracts
PublishedBaseModel, ConfigDict, Field, strict validation, JSON Schema, runtime validation and the execution boundary.
Read chapter → - 0614 min read
Tool Definitions and the Local Ollama Client
PublishedPydantic-generated tool schemas, Qwen, Ollama chat calls, message formats and debugging.
Read chapter → - 0712 min read
The Tool-Calling Conversation: Preserving the Full Round Trip
PublishedInspect ChatResponse, preserve assistant tool calls, append tool observations and retain final context.
Read chapter → - 0810 min read
From One Tool Call to a Bounded Execution Loop
PublishedThe five-iteration loop, multiple tool calls, execution history and the limits of a model-driven sequence.
Read chapter → - 0912 min read
Execution Records and Explicit Statuses
PublishedExecution, task, business outcome and LLM response statuses, including the division-by-zero experiment.
Read chapter → - 1020 min read
Dependency Resolution and Execution Planning
PublishedTaskStep, dependency checks, all(), ready steps, topological ordering, missing dependencies and cycles.
Read chapter → - 1116 min read
Execute Steps and Pass Results Between Them
Publishedexecute_step, results keyed by step ID, source_step references and resolve_arguments().
Read chapter → - 1214 min read
Project Map, Test Evidence and the Next Assignment
PublishedProject structure, module responsibilities, recorded test outcomes, corrections and the next coding milestone.
Read chapter → - 1320 min read
Reference Implementation: The Python Modules
PublishedConsolidated code listings for enums, Pydantic schemas, tool registry, tool definitions, executor, step execution and dependency checks.
Read chapter →