The same search repeats without new evidence
Detect: Controller detects identical normalized action fingerprints.
Recover: Stop or request a different supported investigation path.
Alternate bounded action proposals with tool observations, allowing an agent to adapt its next step while application code controls authority and termination.
ReAct combines reasoning about a task with actions that obtain observations from external tools. Architecturally, the useful property is feedback: the next action can respond to actual evidence instead of assuming every required fact in advance. The runtime should expose structured action proposals and observations, not depend on storing or revealing private chain-of-thought.
The model selects among permitted actions, while application code validates arguments, enforces permissions, and decides whether another iteration is allowed. Observations remain untrusted data. A web page or tool response cannot grant new authority merely because it appears inside the model's context.
A prototype can alternate one model call and one read-only tool until a final response appears. Use a strict iteration ceiling from the beginning.
Production adds action schemas, observation size limits, duplicate-action detection, deadline propagation, and evidence-based completion checks. Tool failures must be represented explicitly rather than disguised as empty successful results.
At scale, monitor tool-selection accuracy, repeated observations, per-task token growth, and endpoint saturation. A flexible loop can hide inefficient search behavior unless evaluation examines the whole trajectory.
Selects a permitted next operation or proposes task completion from available observations.
Validates action identity, argument schema, authorization, and execution limits.
Records normalized results, errors, freshness, and evidence references.
Tracks iterations, elapsed time, repeated actions, and remaining budget.
Checks that the answer addresses the request and is supported by retrieved evidence.
flowchart TD
T["Bounded diagnostic task"] --> A["Action proposal"]
A --> G["Tool policy gateway"]
G --> M["Metrics or inventory tool"]
M --> O["Normalized observation"]
O --> B["Progress and budget check"]
B --> A
B --> V["Evidence validation"]
V --> R["Supported diagnosis"]
B --> H["Partial result or escalation"]Load task scope, permitted tools, deadline, and maximum observation and iteration budgets.
Request a structured action selection based on the current evidence and unresolved requirements.
Validate the chosen tool and arguments using application policy before invoking it.
Record the actual result or classified error with provenance and bounded content size.
Detect repeated actions, missing information, and diminishing evidence gains before another iteration.
Validate the proposed final answer or return an explicit partial result when limits are reached.
Telecommunications · Illustrative enterprise scenario, not a reported customer outcome.
A network operations team receives a complaint affecting several customer sites without a known common cause.
A fixed checklist retrieves excessive telemetry, while a single prompt lacks the evidence needed to distinguish access and backbone problems.
The assistant must choose targeted diagnostic reads and assemble a supported hypothesis without changing network configuration.
A ReAct controller exposes topology, interface counters, incident history, and recent-change tools through a read-only gateway.
If telemetry is unavailable, the agent records the missing evidence and stops with a qualified assessment instead of inventing interface values.
Track diagnostic evidence coverage, repeated calls, time to useful hypothesis, and unsupported conclusions against analyst-reviewed cases.
| Decision | Benefit | Cost |
|---|---|---|
| Adaptive actions | The agent can pursue unexpected evidence efficiently. | Execution paths are less predictable than a fixed workflow. |
| Tool feedback | Real observations reduce dependence on model memory. | Slow or noisy tools directly degrade the loop. |
| Bounded autonomy | The controller limits cost and operational exposure. | Tight budgets may stop legitimate difficult investigations early. |
Detect: Controller detects identical normalized action fingerprints.
Recover: Stop or request a different supported investigation path.
Detect: Observation handling identifies untrusted retrieved content.
Recover: Keep it as data and reject any unauthorized follow-on action.
Record actions, evidence, decisions, and policy results instead.
Resolve calls against an explicit capability registry.
Validate required evidence and unresolved conditions.