liveBook · Manning

Deterministic check

As explained in AI Agents in Action, Second Edition

A deterministic checkpoint is a programmatic or schema-based control point that evaluates a condition repeatably without relying on stochastic model judgment.

A deterministic check is a code- or schema-based control point that evaluates a condition repeatably. It makes pass/fail branches dependable instead of leaving them to stochastic model judgment. section 4.6

Use it like a checkpoint on an assembly line: inspect the typed result before passing it downstream. In agent evaluation, it suits exact correctness; LLM evaluators handle judgments of degree, while humans handle edge cases and policy concerns. section 4.6 section 7.1

Place deterministic checks where a flow needs repeatable decisions:

  • Validate that an agent returned the expected schema before allowing the next node to use the result. section 7.1
  • Confirm that the correct tool was called or that output matches a known-good answer. section 7.1
  • Reject, retry, or correct invalid data before it corrupts a multi-agent flow. section 4.6
  • Keep checks explicit at routing boundaries rather than relying on an agent’s stochastic pass/fail judgment. section 4.6

Schema checkpoint

An agent produces a typed result for the next node. A schema check accepts the result only when it has the expected structure; otherwise, the flow rejects or retries it before continuing. section 4.6 section 7.1

Figure 7.1 The external agent evaluation and feedback systems for a single user-facing agent. In the figure, a generative agent may face evaluation from a critic for general output feedback or from a grounding agent for context-specific feedback and evaluation.

Use the evaluation-system diagram to place deterministic checks alongside critic, grounding, and human feedback paths. section 7.1

How AI Agents in Action, Second Edition covers it

How deep it goes
Defines code or schema checks and contrasts exact tests with fuzzy and human evaluation, but does not specify implementation code.
Examples
Uses schema validation, expected outputs, correct tool calls, and known-good answers as checkable cases.
What it assumes
Assumes agent flows and structured outputs, while distinguishing exact checks from LLM and human evaluation.
What you can do after
Apply it via code or schemas to route flows and test exact agent behavior.
How it connects
Connects agentic flows, typed outputs, guardrails, tool calls, and evaluation feedback.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of AI Agents in Action, Second Edition. The section links point to the parts of the book it draws on.