AudioUsage
Namespace: Vercel.AI.Provider
public sealed class AudioUsageNumeric usage from a speech or transcription call. A count stays unset when the provider does not report that unit.
Inheritance: object
Constructors
Section titled “Constructors”AudioUsage(int?, double?, int?, int?, int?)
Section titled “AudioUsage(int?, double?, int?, int?, int?)”public AudioUsage(int? characters = null, double? seconds = null, int? inputTokens = null, int? outputTokens = null, int? totalTokens = null)Creates usage. Counts that the provider did not report stay null.
Parameters
| Name | Type | Description |
|---|---|---|
characters |
int? | |
seconds |
double? | |
inputTokens |
int? | |
outputTokens |
int? | |
totalTokens |
int? |
Properties
Section titled “Properties”Characters
Section titled “Characters”public int? Characters { get; }Character count, when the provider reports one.
Value: int?
InputTokens
Section titled “InputTokens”public int? InputTokens { get; }Prompt tokens, when the provider reports them.
Value: int?
OutputTokens
Section titled “OutputTokens”public int? OutputTokens { get; }Generated tokens, when the provider reports them.
Value: int?
Seconds
Section titled “Seconds”public double? Seconds { get; }Duration in seconds, when the provider reports one.
Value: double?
TotalTokens
Section titled “TotalTokens”public int? TotalTokens { get; }Input plus output tokens, when the provider reports them.
Value: int?
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product