コンテンツにスキップ

ToolErrorFormatterArgs

このコンテンツはまだ日本語訳がありません。

type ToolErrorFormatterArgs<TContext, TKind> = object;
Type Parameter Default type

TContext

unknown

TKind extends "approval_rejected"

"approval_rejected"

callId: string;

The unique tool call identifier.


defaultMessage: string;

The SDK’s default message for this error kind.


kind: TKind;

The category of tool error being formatted.


runContext: RunContext<TContext>;

The active run context for the current execution.


toolName: string;

The name of the tool that produced the error.


toolType: "function" | "computer" | "shell" | "apply_patch";

The tool runtime that produced the error.