Skip to main content

Function: withRequiredPosture()

withRequiredPosture(id, svc, spec): IGuardrailService

Defined in: packages/agentos/src/safety/guardrails/requiredGuardrails.ts:82

The guard as a required one runs: under its id, fail-closed, with the spec's deadline, and with a malformed answer turned into a block. The original service is not changed.

Parameters​

id​

string

svc​

IGuardrailService

spec​

RequiredGuardrailSpec

Returns​

IGuardrailService