Documentation / @agentick/core / GuardConfig
Interface: GuardConfig ​
Defined in: kernel/src/guard.ts:16
Configuration for createGuard.
Properties ​
guardType? ​
optionalguardType:string
Defined in: kernel/src/guard.ts:28
Guard type discriminator (e.g., "role", "guardrail", "rate-limit")
name? ​
optionalname:string
Defined in: kernel/src/guard.ts:18
Guard name (for debugging, telemetry, error details)
reason? ​
optionalreason: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.