StepFinishPart
Namespace: Vercel.AI
public sealed class StepFinishPart : TextStreamPartA step finished.
Inheritance: object → TextStreamPart
Constructors
Section titled “Constructors”StepFinishPart(StepResult, LanguageModelResponseMetadata, string?)
Section titled “StepFinishPart(StepResult, LanguageModelResponseMetadata, string?)”public StepFinishPart(StepResult step, LanguageModelResponseMetadata response, string? rawFinishReason = null)Creates a step-finish part.
Parameters
| Name | Type | Description |
|---|---|---|
step |
StepResult | |
response |
LanguageModelResponseMetadata | |
rawFinishReason |
string |
Properties
Section titled “Properties”Performance
Section titled “Performance”public StepPerformance Performance { get; }Performance metrics of the step. Maps to performance.
Value: StepPerformance
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; }Provider metadata of the step. Maps to providerMetadata.
Value: JsonElement?
RawFinishReason
Section titled “RawFinishReason”public string? RawFinishReason { get; }The finish reason exactly as the provider reported it, or <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> when the provider reported none. Maps to rawFinishReason.
Value: string
Response
Section titled “Response”public LanguageModelResponseMetadata Response { get; }Response metadata of the step: id, model id, timestamp, and headers. Maps to response.
Value: LanguageModelResponseMetadata
public StepResult Step { get; }Completed step.
Value: StepResult
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product