DeepgramResponse
Namespace: Vercel.AI.Deepgram
public sealed class DeepgramResponseResponse metadata for one Deepgram call.
Inheritance: object
Constructors
Section titled “Constructors”DeepgramResponse(DateTimeOffset, string, IReadOnlyDictionary<string, string>, JsonElement?)
Section titled “DeepgramResponse(DateTimeOffset, string, IReadOnlyDictionary<string, string>, JsonElement?)”public DeepgramResponse(DateTimeOffset timestamp, string modelId, IReadOnlyDictionary<string, string> headers, JsonElement? body)Creates response metadata.
Parameters
| Name | Type | Description |
|---|---|---|
timestamp |
DateTimeOffset | |
modelId |
string | |
headers |
IReadOnlyDictionary<string, string> | |
body |
JsonElement? |
Properties
Section titled “Properties”public JsonElement? Body { get; }JSON response body. Speech calls return audio, so this is null for them.
Value: JsonElement?
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string> Headers { get; }Response headers.
Value: IReadOnlyDictionary<string, string>
ModelId
Section titled “ModelId”public string ModelId { get; }Model id.
Value: string
Timestamp
Section titled “Timestamp”public DateTimeOffset Timestamp { get; }Timestamp captured when the call started.
Value: DateTimeOffset
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product