Skip to content
providerkit
GitHub

Guardrails

type Guardrails = { [K in GuardStage]?: Guardrail<K> } & object;

Defined in: agents/src/types.ts:383

Node-local policy. Configure each specialist/target separately. Callbacks cannot edit data, grant tool access or replace request decisions. Change identity when policy code changes.

identity: string;
optional maxOutputBytes?: number;

UTF-8 JSON bytes across model chunks, or in one tool result. Default 1,000,000. Guarded model streams also stop at 4,096 chunks. No protected delta is sent before allow.