Zu Hauptinhalt wechseln

Dieser Browser wird nicht mehr unterstützt.

Führen Sie ein Upgrade auf Microsoft Edge durch, um die neuesten Features, Sicherheitsupdates und den technischen Support zu nutzen.

Microsoft Edge herunterladen Weitere Informationen zu Internet Explorer und Microsoft Edge
microsoft-foundry.rest.security.o-auth2-auth

Agent Conversations

Get a voice agent conversation item

GET /agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/items/{item_id}

Retrieves a single item from the specified conversation by its id, including its transcript. An input_audio/output_audio content part indicates that audio is available for the item; the canonical per-item audio metadata is the /items/{item_id}/audio resource, and the bytes are streamed by /items/{item_id}/audio/content. Returns 404 when the conversation or item was not persisted (store = false).

Pfadparameter

agent_name string Erforderlich

The name of the agent.

conversation_id string Erforderlich

The id of the conversation that contains the item.

item_id string Erforderlich

The id of the conversation item to retrieve.

Abfrageparameter

api-version string Erforderlich

The API version to use for this operation.

Antworten

The request has succeeded.

Text

Content-Type: application/json
Eins der folgenden:
system_tool VoiceAgentSystemToolItem

Service-generated system-tool intent, not a provider result. Clients cannot create it or complete it with function_call_output.

type enum Erforderlich

The output-item kind. Always system_tool.

system_tool
id string

The identifier of the generated item.

object enum

The realtime item marker.

realtime.item
status string | enum Erforderlich

The generation status of a system-tool item. It does not indicate provider success.

Eines der folgenden Elemente:
string
enum
in_progresscompletedincomplete
name string | enum Erforderlich

A service-managed voice-session control action. Known values are stable; additional values may be added over time.

Eines der folgenden Elemente:
string
enum
end_conversationlanguage_detectiondigit_recognitiontransfercollect_smscollect_dtmfsend_dtmfsend_sms
call_id string Erforderlich

The invocation identifier used for correlation and duplicate suppression.

arguments string Erforderlich

Original JSON-encoded intent: literals remain visible and references stay unexpanded. Excludes private values, resolved arguments and executor-only settings.

created_at integer
response_id string

The id of the response that produced this item, when applicable.

message system | user | assistant
Eins der folgenden:
system OpenAI.RealtimeConversationItemMessageSystem

A system message in a Realtime conversation can be used to provide additional context or instructions to the model. This is similar but distinct from the instruction prompt provided at the start of a conversation, as system messages can be added at any point in the conversation. For major changes to the conversation's behavior, use instructions, but for smaller updates (e.g. "the user is now asking about a different topic"), use system messages.

id string

The unique ID of the item. This may be provided by the client or generated by the server.

object enum

Identifier for the API object being returned - always realtime.item. Optional when creating a new item.

realtime.item
type enum Erforderlich

The type of the item. Always message.

message
status enum

The status of the item. Has no effect on the conversation.

completedincompletein_progress
role enum Erforderlich

The role of the message sender. Always system.

system
content OpenAI.RealtimeConversationItemMessageSystemContent[] Erforderlich

The content of the message.

created_at integer
response_id string

The id of the response that produced this item, when applicable.

user OpenAI.RealtimeConversationItemMessageUser

A user message item in a Realtime conversation.

id string

The unique ID of the item. This may be provided by the client or generated by the server.

object enum

Identifier for the API object being returned - always realtime.item. Optional when creating a new item.

realtime.item
type enum Erforderlich

The type of the item. Always message.

message
status enum

The status of the item. Has no effect on the conversation.

completedincompletein_progress
role enum Erforderlich

The role of the message sender. Always user.

user
content OpenAI.RealtimeConversationItemMessageUserContent[] Erforderlich

The content of the message.

created_at integer
response_id string

The id of the response that produced this item, when applicable.

assistant OpenAI.RealtimeConversationItemMessageAssistant

An assistant message item in a Realtime conversation.

id string

The unique ID of the item. This may be provided by the client or generated by the server.

object enum

Identifier for the API object being returned - always realtime.item. Optional when creating a new item.

realtime.item
type enum Erforderlich

The type of the item. Always message.

message
status enum

The status of the item. Has no effect on the conversation.

completedincompletein_progress
role enum Erforderlich

The role of the message sender. Always assistant.

assistant
content OpenAI.RealtimeConversationItemMessageAssistantContent[] Erforderlich

The content of the message.

created_at integer
response_id string

The id of the response that produced this item, when applicable.

function_call OpenAI.RealtimeConversationItemFunctionCall

A function call item in a Realtime conversation.

id string

The unique ID of the item. This may be provided by the client or generated by the server.

object enum

Identifier for the API object being returned - always realtime.item. Optional when creating a new item.

realtime.item
type enum Erforderlich

The type of the item. Always function_call.

function_call
status enum

The status of the item. Has no effect on the conversation.

completedincompletein_progress
call_id string

The ID of the function call.

name string Erforderlich

The name of the function being called.

arguments string Erforderlich

The arguments of the function call. This is a JSON-encoded string representing the arguments passed to the function, for example {"arg1": "value1", "arg2": 42}.

created_at integer
response_id string

The id of the response that produced this item, when applicable.

function_call_output OpenAI.RealtimeConversationItemFunctionCallOutput

A function call output item in a Realtime conversation.

id string

The unique ID of the item. This may be provided by the client or generated by the server.

object enum

Identifier for the API object being returned - always realtime.item. Optional when creating a new item.

realtime.item
type enum Erforderlich

The type of the item. Always function_call_output.

function_call_output
status enum

The status of the item. Has no effect on the conversation.

completedincompletein_progress
call_id string Erforderlich

The ID of the function call this output is for.

output string Erforderlich

The output of the function call, this is free text and can contain any information or simply be empty.

created_at integer
response_id string

The id of the response that produced this item, when applicable.

name string

The name of the function that was called. A Foundry extension: OpenAI's function_call_output does not carry the function name, only call_id.

mcp_approval_response OpenAI.RealtimeMCPApprovalResponse

A Realtime item responding to an MCP approval request.

type enum Erforderlich

The type of the item. Always mcp_approval_response.

mcp_approval_response
id string Erforderlich

The unique ID of the approval response.

approval_request_id string Erforderlich

The ID of the approval request being answered.

approve boolean Erforderlich

Whether the request was approved.

reason string | null
created_at integer
response_id string

The id of the response that produced this item, when applicable.

mcp_list_tools OpenAI.RealtimeMCPListTools

A Realtime item listing tools available on an MCP server.

type enum Erforderlich

The type of the item. Always mcp_list_tools.

mcp_list_tools
id string

The unique ID of the list.

server_label string Erforderlich

The label of the MCP server.

tools OpenAI.MCPListToolsTool[] Erforderlich

The tools available on the server.

created_at integer
response_id string

The id of the response that produced this item, when applicable.

mcp_call OpenAI.RealtimeMCPToolCall

A Realtime item representing an invocation of a tool on an MCP server.

type enum Erforderlich

The type of the item. Always mcp_call.

mcp_call
id string Erforderlich

The unique ID of the tool call.

server_label string Erforderlich

The label of the MCP server running the tool.

name string Erforderlich

The name of the tool that was run.

arguments string Erforderlich

A JSON string of the arguments passed to the tool.

approval_request_id string | null
output string | null
error protocol_error | tool_execution_error | http_error
Eins der folgenden:
protocol_error OpenAI.RealtimeMCPProtocolError
type enum Erforderlich
protocol_error
code integer Erforderlich
message string Erforderlich
tool_execution_error OpenAI.RealtimeMCPToolExecutionError
type enum Erforderlich
tool_execution_error
message string Erforderlich
http_error OpenAI.RealtimeMCPHTTPError
type enum Erforderlich
http_error
code integer Erforderlich
message string Erforderlich
created_at integer
response_id string

The id of the response that produced this item, when applicable.

mcp_approval_request OpenAI.RealtimeMCPApprovalRequest

A Realtime item requesting human approval of a tool invocation.

type enum Erforderlich

The type of the item. Always mcp_approval_request.

mcp_approval_request
id string Erforderlich

The unique ID of the approval request.

server_label string Erforderlich

The label of the MCP server making the request.

name string Erforderlich

The name of the tool to run.

arguments string Erforderlich

A JSON string of arguments for the tool.

created_at integer
response_id string

The id of the response that produced this item, when applicable.

Client error

Text

Content-Type: application/json
error OpenAI.Error Erforderlich
code string | null Erforderlich
message string Erforderlich
param string | null
type string
misalignment OpenAI.MisalignmentErrorDetailsResource
review_target string | null
error_type string | enum
Eines der folgenden Elemente:
string
enum
potentially_unintended_data_transferpotentially_unintended_data_accesspotentially_unintended_destructive_activityother
detailed_explanation string

The public explanation for this block.

steer OpenAI._MisalignmentSteer
message string Erforderlich

The public continuation instruction.

details OpenAI.Error[]

Additional errors that contributed to this failure.

additionalInfo object

Additional structured information about the failure.

debugInfo object

Diagnostic information supplied by the service for troubleshooting.

Server error

Text

Content-Type: application/json
error OpenAI.Error Erforderlich
code string | null Erforderlich
message string Erforderlich
param string | null
type string
misalignment OpenAI.MisalignmentErrorDetailsResource
review_target string | null
error_type string | enum
Eines der folgenden Elemente:
string
enum
potentially_unintended_data_transferpotentially_unintended_data_accesspotentially_unintended_destructive_activityother
detailed_explanation string

The public explanation for this block.

steer OpenAI._MisalignmentSteer
message string Erforderlich

The public continuation instruction.

details OpenAI.Error[]

Additional errors that contributed to this failure.

additionalInfo object

Additional structured information about the failure.

debugInfo object

Diagnostic information supplied by the service for troubleshooting.

Anfordern

GET /agents/{agent_name}/endpoint/protocols/voice/conversations/{conversation_id}/items/{item_id} HTTP/1.1

Antwort

Status: 200
Content-Type: application/json
Status: 4XX
Content-Type: application/json
Status: 5XX
Content-Type: application/json
de-de
Ihre Datenschutzoptionen
  • KI-Haftungsausschluss
  • Frühere Versionen
  • Blog
  • Mitwirken
  • Datenschutz
  • Consumer Health Privacy
  • Nutzungsbedingungen
  • Impressum
  • Marken
  • © Microsoft 2026