class StepFailed

Methods

__construct(string $invocationId, int $stepNumber, Agent $agent, TextProvider $provider, string $model, bool $isFinalStep, Throwable $exception, float $time)

Create an event for a failed generation step.

Details

at line 19
__construct(string $invocationId, int $stepNumber, Agent $agent, TextProvider $provider, string $model, bool $isFinalStep, Throwable $exception, float $time)

Create an event for a failed generation step.

Parameters

string $invocationId
int $stepNumber
Agent $agent
TextProvider $provider
string $model
bool $isFinalStep
Throwable $exception

a StreamErrorException carries the provider's error event on ->error when available, or null

float $time

wall time spent in the provider call before it failed, in milliseconds