SpeechModelStreamResult
Namespace: Vercel.AI.Operations
public sealed class SpeechModelStreamResultThe result of a speech model doStream call. Maps to SpeechModelV4StreamResult.
Inheritance: object
Constructors
Section titled “Constructors”SpeechModelStreamResult(IAsyncEnumerable<SpeechModelStreamPart>, SpeechModelStreamResponse?, JsonElement?)
Section titled “SpeechModelStreamResult(IAsyncEnumerable<SpeechModelStreamPart>, SpeechModelStreamResponse?, JsonElement?)”public SpeechModelStreamResult(IAsyncEnumerable<SpeechModelStreamPart> stream, SpeechModelStreamResponse? response = null, JsonElement? requestBody = null)Creates a stream result.
Parameters
| Name | Type | Description |
|---|---|---|
stream |
IAsyncEnumerable<SpeechModelStreamPart> | |
response |
SpeechModelStreamResponse | |
requestBody |
JsonElement? |
Properties
Section titled “Properties”RequestBody
Section titled “RequestBody”public JsonElement? RequestBody { get; }Request body or setup payload sent to the provider API.
Value: JsonElement?
Response
Section titled “Response”public SpeechModelStreamResponse? Response { get; }Optional response data.
Value: SpeechModelStreamResponse
Stream
Section titled “Stream”public IAsyncEnumerable<SpeechModelStreamPart> Stream { get; }The stream.
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product