Decision
class Decision
Methods
static Decisions
approveAll()
Approve 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.
at line 34
static Decision
reject(string|null $result = null)
Reject the pending tool call.
at line 44
static Decision
edit(array $arguments)
Edit the pending tool call's arguments.
at line 52
static Decisions
approveAll()
Approve every pending tool call.
at line 60
static Decisions
rejectAll(string|null $result = null)
Reject every pending tool call.
at line 71
static array
normalize(array $decisions)
Normalize an id-keyed decision map, accepting booleans as shorthand and a '*' wildcard for undecided calls.
at line 100
bool
isApproved()
Determine whether the tool call was approved.
at line 108
bool
isRejected()
Determine whether the tool call was rejected.
at line 116
bool
isEdited()
Determine whether the tool call arguments were edited.