AIDAN course book · Red Belt · Promotion exam prep

AI Feature Development Course

Validates that you can implement application features with LLM APIs and manage quality, cost and latency using structured output, tool calling, streaming and caching.

Edition 26.11 · as of 2026-10-21 · Free · read right away, no sign-up.

Contents

  1. How to use this book
  2. Chapter 1. API basics and message design

    An API call is an order sheet · Message roles and priorities · Trust boundary: Separating instructions from data · Who holds the conversation state? · What is a token? · Context window and token budget · Maximum output is a ceiling · Turning stop reasons into states · Principles and current status of sampling parameters · Reasoning effort and thinking configuration · Model selection: Tiers, capabilities, and limits · From requirements to models and parameters · Migrating to Responses and per-object retention periods · When betas end and legacy parameters become errors · An API that asks with a predefined response shape: TypeSafe System One · Why the same request produces different answers · Three ways to handle long conversations

  3. Chapter 2. Structured output and tool calling

    Structured output is a mold · How to enable by vendor and selection criteria · Strict schema rules and vendor differences · Deriving schemas from business concepts · Validating in three stages · A tool definition is an execution contract · Turning the tool calling loop into a state machine · Returning results to the conversation · Parallel tool calling · tool_choice and forced calling · Reasoning models and tool loops · The server holds execution permissions · Encountering unsupported constraints · Programmatic tool calling: leaving repetition to code · Check the executing entity first · When tools multiply · Structured results during streaming

  4. Chapter 3. Performance and cost optimization

    Dividing latency into stages · Seven principles for reducing latency · How streaming works · Designing the entire streaming path · Principles of prompt caching · Comparing caching across vendors · Prompt arrangement to increase cache hits · Break-even point of caching · Batch APIs · Selecting service tiers · Model-tier routing and escalation · Evaluating latency-cost trade-offs · Regulating thinking with effort and aligning with caching · Calculating combined cache read rates and batch discounts · Distinguishing between OpenAI cache retention and response storage · When response caching is dangerous · How to fairly compare optimization experiments

  5. Chapter 4. Reliability and error handling

    Success, failure, and unknown outcome · Error classification table · Decision table for filtering retryable errors · Structure of rate limits · How to interpret 429 errors · Exponential backoff and jitter · Retry in one place, within a budget · Designing timeouts in layers · Idempotency: Pressed twice, executed once · Recovering interrupted responses · Recovering from partial failures · Preventing failures from cascading · OpenAI's slow_down and server_is_overloaded · Rejection errors surging on version-upgrade days · Queues and defaults of local inference servers · Anatomy of a retry storm · Validating recovery policies by injecting failures

  6. Chapter 5. Evaluation and operations

    Operations is instrument flying · Start by defining success criteria · Create an evaluation set · Choose scoring methods · Calibrate LLM scorers · Interpret results: Variation and segments · Pin model versions · Regression evaluation prior to model replacement · Logs and tracing · Handle personal information · Define operational metrics · Separate costs and limits by feature · Check default settings of tracing tools first · Align cost metrics with pricing structures · Filter open-model candidates by license first · How to avoid being tied to evaluation tools · The cycle of returning feedback to the evaluation set

  7. Appendix A. Glossary
  8. Appendix B. Self-check answers and explanations
  9. Appendix C. Exam day guide
  10. Appendix D. Reference documents

AIDAN wrote this course book independently from each vendor's official documentation. It is not affiliated with or endorsed by them. Products and policies change, so check the linked official documentation for the latest details.