IamBishal
New

Agentic AI series · Book 1 • Free to read • Python

Agentic AI Foundations

From LLM Calls to Your First Agent

  • 16Chapters
  • 600+ testsTested code examples
  • 3.12Python
  • NoneAPI key needed
  • Python developers who have called an HTTP API and want to build AI agents from the ground up. No machine learning background needed.

Updated Nov 28, 2026 · v1.0EnglishFree · HTML

Learning Outcomes

What You’ll Learn

This book is designed to take you from concepts to a production-ready implementation. By the end, you’ll have the knowledge, practical skills, and a complete project to build with confidence.

From Fundamentals to Production

Clear explanations, real-world examples, and hands-on projects to help you build with confidence.
  • Tell an agent from a workflow

    Decide where a task sits on the autonomy spectrum, and choose a plain workflow when an agent would add cost and risk without benefit.

  • Call models with confidence

    Use the Messages API, system prompts, streaming and structured outputs, and recover cleanly when a model returns output you can't use.

  • Build tool calling and the agent loop

    Write the call/result cycle and the agent loop yourself, with explicit stop rules, run budgets and tool errors returned as results.

  • Engineer context and memory

    Decide what goes into the context window, and keep long conversations useful with summarisation and compaction.

  • Choose models and frameworks

    Compare models on capability, latency and cost, and know when a framework helps and when to keep the loop in your own code.

  • Test before you trust

    Check an agent with golden tasks, traces and a small eval suite, and harden it with error handling and cost limits.

Your Learning Journey

A structured path from basics to a real-world, production-ready project.

  1. 1Part I: What agents are and how models workAgents vs workflows, the autonomy spectrum, how LLMs work, the Messages API and prompting for agents.
  2. 2Part II: Tools and the agent loopStructured outputs, tool calling, the agent loop with stop rules, and designing good tools.
  3. 3Part III: Context, models and testingContext engineering, short-term memory, choosing a model, frameworks, and testing your agent.
  4. 4Part IV: CapstoneDesign, build and harden a research assistant that searches, reads files, cites sources and stays within budget.

Bishal SahaLet's build together

Have a system to design, or an AI feature to get right?

Tell me about the problem. You'll get a clear, honest view of the best way forward.

  • Reply within 24 hoursOn business days, with my honest view and a next step.
  • Accepting select engagementsArchitecture, AI features and full builds.
  • Remote, worldwideWorking with startups, SMEs and enterprises.