Skip to content

Documentation / @agentick/kernel / GuardConfig

Interface: GuardConfig ​

Defined in: kernel/src/guard.ts:16

Configuration for createGuard.

Properties ​

guardType? ​

optional guardType: string

Defined in: kernel/src/guard.ts:28

Guard type discriminator (e.g., "role", "guardrail", "rate-limit")


name? ​

optional name: string

Defined in: kernel/src/guard.ts:18

Guard name (for debugging, telemetry, error details)


reason? ​

optional reason: string | (envelope) => string

Defined in: kernel/src/guard.ts:25

Denial reason when the guard fn returns false. String or function that receives the envelope for dynamic messages. Ignored when the guard fn throws its own error.

Released under the ISC License.