Skip to content

StreamTextInclude

Namespace: Vercel.AI

public sealed class StreamTextInclude

What streamText keeps of the request and the provider stream. Maps to StreamTextInclude.

Inheritance: object

View source

public bool RawChunks { get; init; }

Whether to forward the provider’s raw chunks as RawPart in the full stream. It asks the model to include them. Maps to rawChunks. The default is <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool"&gt;false&lt;/a>.

Value: bool

View source

public bool RequestBody { get; init; }

Whether to retain the request body in the start-step part. The request body can be large when sending images or files. Maps to requestBody. The default is <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool"&gt;false&lt;/a>.

Value: bool

View source

public bool RequestMessages { get; init; }

Whether to retain the request messages in the start-step part. The request messages can be large when sending images or files. Maps to requestMessages. The default is <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool"&gt;false&lt;/a>.

Value: bool

View source

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