Skip to content

OutputGuardrail

A guardrail that checks the output of the agent.

Type Parameter Default type

TOutput extends AgentOutputType

TextOutput

TContext

UnknownContext

execute: OutputGuardrailFunction<TOutput, TContext>;

The function that performs the guardrail check.


name: string;

The name of the guardrail.