Skip to content

OutputGuardrailFunctionArgs

Arguments for an output guardrail function.

Type Parameter Default type

TContext

UnknownContext

TOutput extends AgentOutputType

TextOutput

agent: Agent<any, any>;

agentOutput: ResolvedAgentOutput<TOutput>;

context: RunContext<TContext>;

optional details: object;

Additional details about the agent output.

Name Type Description

modelResponse?

ModelResponse

Model response associated with the output if available.