class Decision

Methods

static Decision
approve()

Approve the pending tool call.

static Decision
reject(string|null $result = null)

Reject the pending tool call.

static Decision
edit(array $arguments)

Edit the pending tool call's arguments.

static Decisions
approveAll()

Approve every pending tool call.

static Decisions
rejectAll(string|null $result = null)

Reject every pending tool call.

static array
normalize(array $decisions)

Normalize an id-keyed decision map, accepting booleans as shorthand and a '*' wildcard for undecided calls.

bool
isApproved()

Determine whether the tool call was approved.

bool
isRejected()

Determine whether the tool call was rejected.

bool
isEdited()

Determine whether the tool call arguments were edited.

Details

at line 26
static Decision approve()

Approve the pending tool call.

Return Value

Decision

at line 34
static Decision reject(string|null $result = null)

Reject the pending tool call.

Parameters

string|null $result

Return Value

Decision

at line 44
static Decision edit(array $arguments)

Edit the pending tool call's arguments.

Parameters

array $arguments

Return Value

Decision

at line 52
static Decisions approveAll()

Approve every pending tool call.

Return Value

Decisions

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

Reject every pending tool call.

Parameters

string|null $result

Return Value

Decisions

at line 71
static array normalize(array $decisions)

Normalize an id-keyed decision map, accepting booleans as shorthand and a '*' wildcard for undecided calls.

Parameters

array $decisions

Return Value

array

at line 100
bool isApproved()

Determine whether the tool call was approved.

Return Value

bool

at line 108
bool isRejected()

Determine whether the tool call was rejected.

Return Value

bool

at line 116
bool isEdited()

Determine whether the tool call arguments were edited.

Return Value

bool