Skip to content

ToolOutputGuardrailData

Input data passed to a tool output guardrail function.

Type Parameter Default type

TContext

UnknownContext

agent: Agent<any, any>;

ToolInputGuardrailData.agent


context: RunContext<TContext>;

ToolInputGuardrailData.context


output: unknown;

toolCall: object;
Name Type Description

arguments

string

The arguments of the function call.

callId

string

The ID of the tool call. Required to match up the respective tool call result.

id?

string

An ID to identify the item. This is optional by default. If a model provider absolutely requires this field, it will be validated on the model level.

name

string

The name of the function.

providerData?

Record<string, any>

Additional optional provider specific data. Used for custom functionality or model provider specific fields.

status?

"in_progress" | "completed" | "incomplete"

The status of the function call.

type

"function_call"

ToolInputGuardrailData.toolCall