Skip to content

LanguageModelStreamRequest

Namespace: Vercel.AI.Provider

public sealed class LanguageModelStreamRequest

Request info for a stream call. Maps to the request field of doStream.

Inheritance: object

View source

public LanguageModelStreamRequest(JsonElement? body = null)

Creates request info.

Parameters

Name Type Description
body JsonElement?

View source

public JsonElement? Body { get; }

Request body sent to the provider, for debugging.

Value: JsonElement?

View source

public static LanguageModelStreamRequest FromJson(string json)

Creates request info from the JSON text that was sent.

Parameters

Name Type Description
json string

Returns: LanguageModelStreamRequest

View source

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