class StartingStep

Methods

__construct(string $invocationId, int $stepNumber, Agent $agent, TextProvider $provider, string $model, bool $isFinalStep, array $messages, TextGenerationOptions|null $options, string|null $instructions = null, array $tools = [])

Create an event for a generation step being started.

array
__serialize()

Prepare the step for serialization without its live tool instances.

Details

at line 24
__construct(string $invocationId, int $stepNumber, Agent $agent, TextProvider $provider, string $model, bool $isFinalStep, array $messages, TextGenerationOptions|null $options, string|null $instructions = null, array $tools = [])

Create an event for a generation step being started.

Parameters

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

the model the step is requested against, which the responding model reported on the completed step may differ from

bool $isFinalStep
array $messages

the messages being sent for this step, including the tool results of the steps before it

TextGenerationOptions|null $options

the options resolved for this step, which may differ from the agent's own once a forced tool choice has been satisfied

string|null $instructions
array $tools

the tools resolved for this step after middleware

at line 41
array __serialize()

Prepare the step for serialization without its live tool instances.

Return Value

array