Skip to content

StartStepPart

Namespace: Vercel.AI

public sealed class StartStepPart : TextStreamPart

A step started. It comes before the parts of that step.

Inheritance: object → TextStreamPart

View source

StartStepPart(IReadOnlyList<CallWarning>?, LanguageModelRequestMetadata?)

Section titled “StartStepPart(IReadOnlyList<CallWarning>?, LanguageModelRequestMetadata?)”
public StartStepPart(IReadOnlyList<CallWarning>? warnings = null, LanguageModelRequestMetadata? request = null)

Creates a start-step part.

Parameters

Name Type Description
warnings IReadOnlyList<CallWarning>
request LanguageModelRequestMetadata

View source

public LanguageModelRequestMetadata Request { get; }

Request metadata of this step. Body and messages are set only when Include asks for them.

Value: LanguageModelRequestMetadata

View source

public IReadOnlyList<CallWarning> Warnings { get; }

Warnings from the model call of this step.

Value: IReadOnlyList<CallWarning>

View source

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