VoiceLiveModelFactory.ResponseTokenStatistics Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overall usage statistics for a response.
public static Azure.AI.VoiceLive.ResponseTokenStatistics ResponseTokenStatistics(int totalTokens = 0, int inputTokens = 0, int outputTokens = 0, Azure.AI.VoiceLive.InputTokenDetails inputTokenDetails = default, Azure.AI.VoiceLive.OutputTokenDetails outputTokenDetails = default);
static member ResponseTokenStatistics : int * int * int * Azure.AI.VoiceLive.InputTokenDetails * Azure.AI.VoiceLive.OutputTokenDetails -> Azure.AI.VoiceLive.ResponseTokenStatistics
Public Shared Function ResponseTokenStatistics (Optional totalTokens As Integer = 0, Optional inputTokens As Integer = 0, Optional outputTokens As Integer = 0, Optional inputTokenDetails As InputTokenDetails = Nothing, Optional outputTokenDetails As OutputTokenDetails = Nothing) As ResponseTokenStatistics
Parameters
- totalTokens
- Int32
Total number of tokens (input + output).
- inputTokens
- Int32
Number of input tokens.
- outputTokens
- Int32
Number of output tokens.
- inputTokenDetails
- InputTokenDetails
Detailed breakdown of input tokens.
- outputTokenDetails
- OutputTokenDetails
Detailed breakdown of output tokens.
Returns
A new ResponseTokenStatistics instance for mocking.