VoiceLiveModelFactory.SessionResponseMcpApprovalRequestItem Method

Definition

A response item that represents a request for approval to call an MCP tool.

public static Azure.AI.VoiceLive.SessionResponseMcpApprovalRequestItem SessionResponseMcpApprovalRequestItem(string id = default, string object = default, string arguments = default, string name = default, string serverLabel = default);
static member SessionResponseMcpApprovalRequestItem : string * string * string * string * string -> Azure.AI.VoiceLive.SessionResponseMcpApprovalRequestItem
Public Shared Function SessionResponseMcpApprovalRequestItem (Optional id As String = Nothing, Optional object As String = Nothing, Optional arguments As String = Nothing, Optional name As String = Nothing, Optional serverLabel As String = Nothing) As SessionResponseMcpApprovalRequestItem

Parameters

id
String
object
String
arguments
String

The arguments for the tool call.

name
String

The name of the tool to call.

serverLabel
String

The label of the server that provides the tool.

Returns

A new SessionResponseMcpApprovalRequestItem instance for mocking.

Applies to