Graphorin API reference v0.15.1
Graphorin API reference / @graphorin/tools / / InboundSanitizationWithClassifierOptions
Interface: InboundSanitizationWithClassifierOptions
Defined in: packages/tools/src/inbound/sanitize.ts:224
Stable
Options for applyInboundSanitizationWithClassifier.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
body | readonly | string | - | packages/tools/src/inbound/sanitize.ts:225 |
budgetMs? | readonly | number | - | packages/tools/src/inbound/sanitize.ts:232 |
classifier? | readonly | InjectionClassifier | Optional pluggable injection classifier consulted AFTER the regex pass, on the already-sanitized body. A flagged verdict appends classifier:<id> to patternsHit (audit signal); the body is never modified by the classifier (it names no spans to strip). Errors are swallowed by the resilience contract - the regex outcome stands alone. | packages/tools/src/inbound/sanitize.ts:241 |
contentOrigin? | readonly | string | - | packages/tools/src/inbound/sanitize.ts:229 |
failClosed? | readonly | boolean | - | packages/tools/src/inbound/sanitize.ts:230 |
patterns? | readonly | readonly ImperativePattern[] | - | packages/tools/src/inbound/sanitize.ts:231 |
policy | readonly | InboundSanitizationPolicy | - | packages/tools/src/inbound/sanitize.ts:226 |
toolName | readonly | string | - | packages/tools/src/inbound/sanitize.ts:228 |
trustClass | readonly | ToolTrustClass | - | packages/tools/src/inbound/sanitize.ts:227 |