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.

Parameters

string $id
string $tool
array $arguments
string|null $reason

at line 29
static bool isPending(array $toolCall)

Determine whether a stored tool call is still awaiting an approval decision.

Parameters

array $toolCall

Return Value

bool

at line 39
static bool isAnswered(array $toolCall)

Determine whether a stored tool call has been answered by its tool.

Parameters

array $toolCall

Return Value

bool

at line 47
array toArray()

Get the instance as an array.

Return Value

array