Interface: GuardrailOutputPayload
Defined in: packages/agentos/src/core/guardrails/IGuardrailService.ts:183
Payload for output guardrail evaluation.
Provided to IGuardrailService.evaluateOutput before response chunks are emitted to the client. Use this to filter, redact, or block agent output.
Remarks
The timing of evaluation depends on GuardrailConfig.evaluateStreamingChunks:
true: Called for every TEXT_DELTA chunk (real-time filtering)false(default): Called only for FINAL_RESPONSE chunks
Properties
chunk
chunk:
AgentOSResponse
Defined in: packages/agentos/src/core/guardrails/IGuardrailService.ts:188
The response chunk to evaluate
context
context:
GuardrailContext
Defined in: packages/agentos/src/core/guardrails/IGuardrailService.ts:185
Conversational context for policy decisions