Path: redb-route/redb.Route.Llm.Abstractions/Tools/ToolSkipReasons.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Llm.Abstractions/Tools/ToolSkipReasons.cs
----
namespace redb.Route.Llm.Abstractions.Tools;
///
/// Stable SkipReason values the engine reports to IAgentObserver when a tool call is
/// skipped instead of executed. This is the observer/audit channel; model-facing error codes live in
/// .
///
public static class ToolSkipReasons
{
///
/// Required claims could not be verified for the run's principal. The engine appends
/// :<claim,claim> with the missing names — audit detail that must not reach the model.
///
public const string ClaimsMissing = "claims_missing";
///
/// The tool was answered from its cache instead of being dispatched, so the underlying side effect
/// did not run. Only and
/// — that is, only read-only tools — can produce this.
///
public const string CacheHit = "cache_hit";
///
/// This tool_use id was already executed in the same conversation and its stored result was
/// returned instead of running the tool again. Only tools with a declared side effect (not
/// ) are de-duplicated this way.
///
public const string IdempotencyHit = "idempotency_hit";
///
/// The approval gate refused the call. The engine appends the gate's own reason text
/// ("denied: <reason>"); the model sees only
/// .
///
public const string ApprovalDeniedPrefix = "denied:";
///
/// A tool was called while an ambient transaction was open (for
/// example inside a route's .Transacted()). Its action cannot be rolled back with that
/// transaction, so the engine did not run it; the model sees
/// .
///
public const string ExternalInTransaction = "external_in_transaction";
}