Skip to content

TextStreamPart

Namespace: Vercel.AI

public abstract class TextStreamPart

A part of the streamText full stream.

Inheritance: object

Derived: AbortPart, ErrorPart, FinishPart, RawPart, ReasoningDeltaPart, SourcePart, StartPart, StartStepPart, StepFinishPart, TextDeltaPart, ToolApprovalRequestPart, ToolCallPart, ToolErrorPart, ToolInputDeltaPart, ToolInputEndPart, ToolInputStartPart, ToolResultPart

View source

protected TextStreamPart(string type)

Creates a part.

Parameters

Name Type Description
type string

View source

public string Type { get; }

Part type.

Value: string

View source

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