class ParentInvocation

Constants

PARENT_INVOCATION_CONTEXT_KEY

Methods

static array
current()

Get the invocation and tool invocation the current run was delegated from.

static mixed
within(string|null $invocationId, string $toolInvocationId, Closure $callback)

Run the given callback with the given invocation and tool invocation as the delegating parent.

Details

at line 19
static array current()

Get the invocation and tool invocation the current run was delegated from.

Return Value

array

at line 27
static mixed within(string|null $invocationId, string $toolInvocationId, Closure $callback)

Run the given callback with the given invocation and tool invocation as the delegating parent.

Parameters

string|null $invocationId
string $toolInvocationId
Closure $callback

Return Value

mixed