Step
class Step implements Arrayable, JsonSerializable
Traits
Properties
| Response|null | $raw | The raw HTTP response, if available for the provider. |
from HasRawResponse |
Methods
from
HasRawResponse
array
__serialize()
Prepare the instance for serialization, discarding the unserializable raw HTTP response.
from
HasRawResponse
__construct(string $text, array $toolCalls, array $toolResults, FinishReason $finishReason, TextUsage $usage, Meta $meta, string $reasoning, array $replayBlocks, array $providerToolCalls = [])
Create a generation step.
array
toArray()
Get the instance as an array.
array
jsonSerialize()
Get the JSON serializable representation of the instance.
Details
in
HasRawResponse at line 19
HasRawResponse
withRawResponse(Response|null $response)
Set the raw HTTP response.
in
HasRawResponse at line 29
array
__serialize()
Prepare the instance for serialization, discarding the unserializable raw HTTP response.
at line 23
__construct(string $text, array $toolCalls, array $toolResults, FinishReason $finishReason, TextUsage $usage, Meta $meta, string $reasoning, array $replayBlocks, array $providerToolCalls = [])
Create a generation step.
at line 39
array
toArray()
Get the instance as an array.
at line 57
array
jsonSerialize()
Get the JSON serializable representation of the instance.