Blog/Learn Agentic AI Development/A Hands-on Engineering Handbook

Chapter 01 / 8 min read

A Hands-on Engineering Handbook

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

A hands-on engineering handbook

This handbook follows a practical implementation journey rather than presenting AI terminology in isolation. We build small Python agents, test them against a local Ollama model, introduce Pydantic, connect tool definitions to Python functions, and then develop the foundations of a multi-step execution planner.

The learning environment matters because it shaped the engineering choices:

ItemEnvironment used in the exercises
Operating systemWindows
ShellPowerShell
Python3.14.7
Model runtimeOllama
Main modelqwen2.5:7b
Additional modelllama3.2:latest
Memory16 GB RAM
GPUIntegrated GPU
ProjectC:\agent-project\agentic-ai-lab

The goal was to build from scratch and understand every component. The intended long-term direction is enterprise AI architecture, with an eventual ability to integrate agent capabilities into Pega applications and decisioning workflows.

How to use this handbook

The preferred learning method was explicitly agreed during the work:

  • 70% building: write code, run it, inspect output and fix defects.
  • 20% understanding: understand the specific concept needed to solve the current problem.
  • 10% architecture: connect the implementation to enterprise concerns.

That ratio is not a rigid formula. It is a reminder not to replace implementation with endless discussion. Each chapter therefore follows a consistent pattern:

  1. The problem we were trying to solve.
  2. Why the problem matters.
  3. The implementation and actual code.
  4. What each important line does.
  5. The experiment or failure that taught us something.
  6. What remains incomplete.

The project evolved through two experiments

The earliest experiment used three tools: retrieve the local date/time, calculate an expression, and save a note. It demonstrated the model → tool request → Python execution → observation loop.

A later research-agent prototype explored web search and writing a Markdown report. That was a useful separate direction, but it was not the implementation path selected for the core engineering exercises.

The main learning path then settled on three calculator tools:

  • calculate_addition(a, b)
  • multiply_numbers(a, b)
  • divide_numbers(a, b)

The calculator is intentionally simple. It lets us concentrate on the difficult parts: contracts, dispatch, tool-call messages, execution history, status management, dependencies and data passing.

A note about fidelity

The examples preserve the implementation decisions, code patterns, observed outputs and debugging lessons from the project. Where an implementation contains an error or an incomplete step, the limitation is identified. Corrected or hardened examples are labelled clearly and are not presented as code that was already tested.

The implementation reaches the first version of resolve_arguments(), but does not yet include a fully integrated, end-to-end dependency-aware orchestration loop. Completing that integration remains a next milestone.