Skip to content

OutputGuardrail

A guardrail that checks the output of the agent.

Type Parameter Default type

TOutput extends AgentOutputType

TextOutput

execute: OutputGuardrailFunction<TOutput>;

The function that performs the guardrail check.


name: string;

The name of the guardrail.