class Decisions

Methods

static Decisions
from(array $decisions)

Create approval decisions from an ID-keyed decision map.

array
all()

Get all approval decisions.

Decision|null
get(string $toolCallId)

Get the explicit decision for the given tool call ID.

approveRemaining()

Approve every tool call without an explicit decision.

rejectRemaining(string|null $result = null)

Reject every tool call without an explicit decision.

Details

at line 23
static Decisions from(array $decisions)

Create approval decisions from an ID-keyed decision map.

Parameters

array $decisions

Return Value

Decisions

at line 33
array all()

Get all approval decisions.

Return Value

array

at line 41
Decision|null get(string $toolCallId)

Get the explicit decision for the given tool call ID.

Parameters

string $toolCallId

Return Value

Decision|null

at line 49
Decisions approveRemaining()

Approve every tool call without an explicit decision.

Return Value

Decisions

at line 60
Decisions rejectRemaining(string|null $result = null)

Reject every tool call without an explicit decision.

Parameters

string|null $result

Return Value

Decisions