Skip to content

@pgege/kaboo-react


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?

optional expiresAt?: 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?

optional request?: 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?

optional scopes?: ApprovalScope[]

Defined in: src/types.ts:86

The scopes the person may choose; absent means once only.


subject?

optional subject?: ApprovalSubject

Defined in: src/types.ts:84

What "Allow for this chat" or "Always allow" would cover.


tool_input?

optional tool_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.