ProjectsAgentsModelFactory.VoiceResult 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.
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 static Azure.AI.Projects.Agents.VoiceResult VoiceResult(string id = default, Azure.AI.Projects.Agents.VoiceResponseObject? object = default, OpenAI.Realtime.RealtimeResponseStatus? status = default, OpenAI.Realtime.RealtimeResponseStatusDetails statusDetails = default, System.Collections.Generic.IEnumerable<OpenAI.Realtime.RealtimeItem> output = default, System.Collections.Generic.IDictionary<string,BinaryData> metadata = default, OpenAI.Realtime.RealtimeResponseUsage usage = default, string conversationId = default, System.Collections.Generic.IEnumerable<OpenAI.Realtime.RealtimeOutputModality> outputModalities = default, BinaryData maxOutputTokens = default, Azure.AI.Projects.Agents.VoiceResponseAudio audio = default, float? temperature = default, DateTimeOffset? createdOn = default, DateTimeOffset? completedOn = default);
static member VoiceResult : string * Nullable<Azure.AI.Projects.Agents.VoiceResponseObject> * Nullable<OpenAI.Realtime.RealtimeResponseStatus> * OpenAI.Realtime.RealtimeResponseStatusDetails * seq<OpenAI.Realtime.RealtimeItem> * System.Collections.Generic.IDictionary<string, BinaryData> * OpenAI.Realtime.RealtimeResponseUsage * string * seq<OpenAI.Realtime.RealtimeOutputModality> * BinaryData * Azure.AI.Projects.Agents.VoiceResponseAudio * Nullable<single> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> -> Azure.AI.Projects.Agents.VoiceResult
Public Shared Function VoiceResult (Optional id As String = Nothing, Optional object As Nullable(Of VoiceResponseObject) = Nothing, Optional status As Nullable(Of RealtimeResponseStatus) = Nothing, Optional statusDetails As RealtimeResponseStatusDetails = Nothing, Optional output As IEnumerable(Of RealtimeItem) = Nothing, Optional metadata As IDictionary(Of String, BinaryData) = Nothing, Optional usage As RealtimeResponseUsage = Nothing, Optional conversationId As String = Nothing, Optional outputModalities As IEnumerable(Of RealtimeOutputModality) = Nothing, Optional maxOutputTokens As BinaryData = Nothing, Optional audio As VoiceResponseAudio = Nothing, Optional temperature As Nullable(Of Single) = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional completedOn As Nullable(Of DateTimeOffset) = Nothing) As VoiceResult
Parameters
- id
- String
The unique ID of the response, will look like resp_1234.
- object
- Nullable<VoiceResponseObject>
The object type, must be realtime.response.
- status
- Nullable<OpenAI.Realtime.RealtimeResponseStatus>
The final status of the response (completed, cancelled, failed, or
incomplete, in_progress).
- statusDetails
- OpenAI.Realtime.RealtimeResponseStatusDetails
Additional details about the status.
- output
- IEnumerable<OpenAI.Realtime.RealtimeItem>
The list of output items generated by the response.
- metadata
- IDictionary<String,BinaryData>
- usage
- OpenAI.Realtime.RealtimeResponseUsage
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.
- conversationId
- String
Which conversation the response is added to, determined by the conversation
field in the response.create event. If auto, the response will be added to
the default conversation and the value of conversation_id will be an id like
conv_1234. If none, the response will not be added to any conversation and
the value of conversation_id will be null. If responses are being triggered
automatically by VAD the response will be added to the default conversation
- outputModalities
- IEnumerable<OpenAI.Realtime.RealtimeOutputModality>
The set of modalities the model used to respond, currently the only possible values are
[\"audio\"], [\"text\"]. Audio output always include a text transcript. Setting the
output to mode text will disable audio output from the model.
- maxOutputTokens
- BinaryData
Maximum number of output tokens for a single assistant response, inclusive of tool calls, that was used in this response.
- audio
- VoiceResponseAudio
The audio configuration used for the response, including the voice and audio format used for output.
- createdOn
- Nullable<DateTimeOffset>
The Unix timestamp (in seconds) for when the response was created.
- completedOn
- Nullable<DateTimeOffset>
The Unix timestamp (in seconds) for when the response completed.
Returns
A new VoiceResult instance for mocking.