Interface: ApprovalReason¶
Defined in: src/types.ts:74
An approval interrupt: the agent is asking the user to approve or reject a gated tool call before it runs.
Properties¶
expiresAt?¶
optionalexpiresAt?:string
Defined in: src/types.ts:88
ISO-8601 deadline; after it the request can only be dismissed.
message¶
message:
string
Defined in: src/types.ts:78
Human-readable description of what is being approved.
request?¶
optionalrequest?:string
Defined in: src/types.ts:93
The tool's own request id, when the tool asked for this approval itself. The host forwards the decision to that tool's service; a card needn't use it.
scopes?¶
optionalscopes?:ApprovalScope[]
Defined in: src/types.ts:86
The scopes the person may choose; absent means once only.
subject?¶
optionalsubject?:ApprovalSubject
Defined in: src/types.ts:84
What "Allow for this chat" or "Always allow" would cover.
tool_input?¶
optionaltool_input?:unknown
Defined in: src/types.ts:82
The proposed tool input, shown for review.
tool_name¶
tool_name:
string
Defined in: src/types.ts:80
Name of the gated tool awaiting approval.
type¶
type:
"approval"
Defined in: src/types.ts:76
Discriminator marking this as an approval gate.