API Reference
Browse the REDB API documentation. Select a namespace or type from the tree on the left, or click on items below.
Showing: redb.Route.Llm.Engine.Governance
Show all
redb.Route.Llm.Engine.Governance
Classes
| ApprovalDecision | Outcome of an approval decision. |
| ApprovalRequest | Pending tool-call approval request handed to the gate. |
| AutoApproveGate | Default gate that auto-approves every request — used in development and in |
| DenyAllGate | Gate that denies every approval request. Opt-in: it is not registered by default |
| InMemoryBudgetEnforcer | In-process budget enforcer — checks components against the running |
| NoopBudgetEnforcer | Default no-op budget enforcer — always allows execution. |
| NoopRedactionFilter | Default redaction filter — returns the input untouched. |
| NoopShadowRunner | Default no-op shadow runner — disabled, never executes anything. |
| NullCostCalculator | Default calculator: prices nothing. Registered by AddRedbRouteLlm() so the engine always has |
| StoreBudgetEnforcer | Budget enforcement that survives the run: usage is accumulated per conversation in an |
Interfaces
| IApprovalGate | Gate that blocks a tool call until an approver responds. The agent loop calls |
| IBudgetEnforcer | Enforces token and cost budgets on agent runs. Called before and after each |
| ICostCalculator | Prices one provider response so a cost budget can be enforced. The engine asks this once per |
| IRedactionFilter | Removes secrets / PII from strings before they are logged, persisted to |
| IShadowRunner | Optional shadow runner — when enabled, every primary provider call is also |
Structs
| AgentBudget | Per-run budget. Components ≤ 0 disable that dimension of enforcement. |
| AgentUsage | Running usage measured against an . |
| BudgetDecision | Outcome of a budget enforcement decision. |
Enums
| RedactionContext | Context flags that influence how a piece of text is redacted. |