← Back to Articles
Agentic Architectural Patterns • Part 3

Single Agent Patterns: Search over Actions

Intent

When single-path generation is unreliable, explore a tree or graph of candidate reasoning/action sequences and select among them.

Introduction

For complex reasoning tasks, software engineering, or mathematical problem solving, a single linear completion path (whether standard ReAct or static Plan-Then-Execute) is highly vulnerable to early mistakes. If an AI agent commits to an incorrect assumption or selects a suboptimal tool at step one, it can wander far off course, wasting tokens and time. The Search over Actions pattern addresses this by transforming the agent's execution path from a linear sequence into a state search tree. This allows the system to systematically explore, evaluate, and backtrack over alternative action paths.

Structure of the Pattern

The Search over Actions architecture leverages classical tree and graph search algorithms, mapping them onto generative language model calls and evaluations:

Root State S0 Initial Prompt Action A1 Score: 0.4 ✗ Action A2 Score: 0.8 ✓ Action A3 Score: 0.2 ✗ Action A2.1 Score: 0.9 ★ Action A2.2 Score: 0.3 ✗

Two primary frameworks have defined this pattern in LLM systems: **Tree of Thoughts (ToT)** [1], which introduced structured tree searching over reasoning traces, and **Language Agent Tree Search (LATS)** [2], which unified tree-search architectures with tool execution, state tracking, and external environment feedback.

Trade-offs

Searching over action graphs provides massive resilience on complex, algorithmic tasks, but introduces significant design and operating trade-offs:

High Algorithmic Accuracy

Enables the agent to recover from reasoning dead-ends, syntax errors, or environmental failures through deterministic backtracking.

Pruning & Safety Guardrails

Allows safety and quality verifiers to veto hazardous or incorrect candidate actions before they are executed in production systems.

Multiplied Resource Costs

Exploring both breadth and depth in a search tree causes token consumption and inference latency to grow exponentially with the branching factor.

Evaluator as a Bottleneck

The entire search policy depends heavily on the critic's accuracy. A faulty value function will guide the agent down hallucinated paths.

Known Uses

Search over Actions is typically utilized in advanced problem-solving wrappers and validation harnesses:

References