Skip to content

OutputGuardrailResult

The result of an output guardrail execution.

Type Parameter Default type

TMeta

OutputGuardrailMetadata

TOutput extends AgentOutputType

TextOutput

agent: Agent<unknown, TOutput>;

The agent that ran.


agentOutput: ResolvedAgentOutput<TOutput>;

The output of the agent that ran.


guardrail: TMeta;

The metadata of the guardrail.


output: GuardrailFunctionOutput;

The output of the guardrail.