class StepCompleted

Methods

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

Create an event for a completed generation step.

Details

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

Create an event for a completed generation step.

Parameters

string $invocationId
int $stepNumber
Agent $agent
TextProvider $provider
string $model

the model the step was requested against, which the responding model reported in $response->meta may differ from

bool $isFinalStep
StepResponse $response
float $time

wall time spent in the provider call, in milliseconds