Skip to content

GenerateObjectStepEndEvent

Namespace: Vercel.AI.GenerateObject

public sealed class GenerateObjectStepEndEvent : GenerateObjectEvent

The raw result of the one model step made by generateObject.

Inheritance: object → GenerateObjectEvent

View source

public FinishReason FinishReason { get; }

Finish reason.

Value: FinishReason

View source

public double? MsToFirstChunk { get; }

Milliseconds from the start of the stream to the first chunk. Set only by streamObject.

Value: double?

View source

public string ObjectText { get; }

All text returned by the model, before provider-selected text is parsed.

Value: string

View source

public JsonElement? ProviderMetadata { get; }

Provider-specific response metadata.

Value: JsonElement?

View source

public string? Reasoning { get; }

Reasoning returned by the model.

Value: string

View source

public LanguageModelRequestMetadata Request { get; }

Request metadata.

Value: LanguageModelRequestMetadata

View source

public StepResponse Response { get; }

Response metadata, including the raw response body.

Value: StepResponse

View source

public int StepNumber { get; }

The only step number made by generateObject.

Value: int

View source

public LanguageModelUsage Usage { get; }

Token usage.

Value: LanguageModelUsage

View source

public IReadOnlyList<CallWarning> Warnings { get; }

Provider warnings.

Value: IReadOnlyList<CallWarning>

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product