Skip to content

RawPart

Namespace: Vercel.AI

public sealed class RawPart : TextStreamPart

A raw chunk of the provider stream. It appears only when RawChunks is set.

Inheritance: object → TextStreamPart

View source

public RawPart(JsonElement rawValue)

Creates a raw part.

Parameters

Name Type Description
rawValue JsonElement

View source

public JsonElement RawValue { get; }

The raw value the provider sent. Maps to rawValue.

Value: JsonElement

View source

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