VoiceResult Class
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.
A persisted voice response representing one model inference turn within a conversation. In list results the
output projection may be omitted; retrieve the
full response (GET .../responses/{response_id}) or the paged response-items route
(GET .../responses/{response_id}/items) for its output items. created_at/completed_at are Foundry
durable ordering extensions.
public class VoiceResult : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.Agents.VoiceResult>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.Agents.VoiceResult>
type VoiceResult = class
interface IJsonModel<VoiceResult>
interface IPersistableModel<VoiceResult>
Public Class VoiceResult
Implements IJsonModel(Of VoiceResult), IPersistableModel(Of VoiceResult)
- Inheritance
-
VoiceResult
- Implements
Properties
| Name | Description |
|---|---|
| Audio |
The audio configuration used for the response, including the voice and audio format used for output. |
| CompletedOn |
The Unix timestamp (in seconds) for when the response completed. |
| ConversationId |
Which conversation the response is added to, determined by the |
| CreatedOn |
The Unix timestamp (in seconds) for when the response was created. |
| Id |
The unique ID of the response, will look like |
| MaxOutputTokens |
Maximum number of output tokens for a single assistant response, inclusive of tool calls, that was used in this response. To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions). To assign an already formatted json string to this property use FromString(String). <remarks> Supported types:
Examples:
|
| Metadata |
Gets the Metadata. To assign an object to the value of this property use FromObjectAsJson<T>(T, JsonSerializerOptions). To assign an already formatted json string to this property use FromString(String). Examples:
|
| Object |
The object type, must be |
| Output |
The list of output items generated by the response. |
| OutputModalities |
The set of modalities the model used to respond, currently the only possible values are
|
| Status |
The final status of the response ( |
| StatusDetails |
Additional details about the status. |
| Temperature |
The sampling temperature used for the response. |
| Usage |
Usage statistics for the Response, this will correspond to billing. A Realtime API session will maintain a conversation context and append new Items to the Conversation, thus output from previous turns (text and audio tokens) will become the input for later turns. |
Methods
Operators
| Name | Description |
|---|---|
| Explicit(ClientResult to VoiceResult) | |