Class DenyAllGate

Assembly: redb.Route.Llm.dll

Gate that denies every approval request. Opt-in: it is not registered by default
(the shipped default is ), and nothing picks it up automatically
when mutating tools are present. Swap it in explicitly when a host wants approvals to fail closed:
services.Replace(ServiceDescriptor.Singleton<IApprovalGate, DenyAllGate>());

public sealed class DenyAllGate : IApprovalGate

Inheritance

Object→DenyAllGate

Implements

Methods

AwaitAsync(ApprovalRequest, CancellationToken)

Awaits an approval decision for the given tool call.

public Task<ApprovalDecision> AwaitAsync(ApprovalRequest request, CancellationToken ct = default)