LanguageModelStreamRequest
Namespace: Vercel.AI.Provider
public sealed class LanguageModelStreamRequestRequest info for a stream call. Maps to the request field of doStream.
Inheritance: object
Constructors
Section titled “Constructors”LanguageModelStreamRequest(JsonElement?)
Section titled “LanguageModelStreamRequest(JsonElement?)”public LanguageModelStreamRequest(JsonElement? body = null)Creates request info.
Parameters
| Name | Type | Description |
|---|---|---|
body |
JsonElement? |
Properties
Section titled “Properties”public JsonElement? Body { get; }Request body sent to the provider, for debugging.
Value: JsonElement?
Methods
Section titled “Methods”FromJson(string)
Section titled “FromJson(string)”public static LanguageModelStreamRequest FromJson(string json)Creates request info from the JSON text that was sent.
Parameters
| Name | Type | Description |
|---|---|---|
json |
string |
Returns: LanguageModelStreamRequest
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product