PendingApproval
class PendingApproval implements Arrayable
Methods
__construct(string $id, string $tool, array $arguments, string|null $reason = null)
Create a pending tool approval.
static bool
isPending(array $toolCall)
Determine whether a stored tool call is still awaiting an approval decision.
static bool
isAnswered(array $toolCall)
Determine whether a stored tool call has been answered by its tool.
array
toArray()
Get the instance as an array.
Details
at line 16
__construct(string $id, string $tool, array $arguments, string|null $reason = null)
Create a pending tool approval.
at line 29
static bool
isPending(array $toolCall)
Determine whether a stored tool call is still awaiting an approval decision.
at line 39
static bool
isAnswered(array $toolCall)
Determine whether a stored tool call has been answered by its tool.
at line 47
array
toArray()
Get the instance as an array.