liveBook · Manning

Decision framework

As explained in Building Reliable AI Systems

A structured approach that guides an AI agent in reasoning, selecting tools and actions, and sequencing tasks.

A decision framework guides an AI agent from a user request to a sequence of actions. Memory retains context and tools provide access to external systems; the framework decides how to reason about the request, which tools to use, and when to use them. Without that guidance, an agent may choose the wrong tool or perform tasks in the wrong order. section 6.2 section 6.2.5

Flight and hotel request

Suppose a user asks for a flight from New York to San Francisco next Tuesday and a hotel near Union Square. The agent must identify two subtasks, retrieve flights with a flight-booking tool, search with a hotel-booking tool, and present the results. It should finalize bookings only after the user approves them; booking the hotel before confirming the flight could be the wrong sequence. section 6.2.5

Two approaches are identified:

A sound action sequence does not by itself guarantee an accurate result. For production reliability, tool validation, cross-referencing, and guardrails provide additional checks. section 6.5

How Building Reliable AI Systems covers it

How deep it goes
Distinguishes rule-based and AI-driven approaches and describes ReAct’s cycle, but gives no implementation detail in the supplied evidence.
Examples
Uses a flight-and-hotel request to illustrate subtask identification, tool choice, approval, and booking order.
What you can do after
Evaluate/understand it by checking whether an agent chooses appropriate tools and sequences actions around user approval.
How it connects
Connects decision-making to agent memory, tool integration, ReAct, and Tree of Thoughts (ToT).

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Building Reliable AI Systems. The section links point to the parts of the book it draws on.