ResponseEventStream.OutputItemMcpApprovalRequest Method

Definition

Convenience generator that yields the complete MCP approval request lifecycle. MCP approval requests have no intermediate events — only output_item.added and output_item.done.

public System.Collections.Generic.IEnumerable<Azure.AI.AgentServer.Responses.Models.ResponseStreamEvent> OutputItemMcpApprovalRequest(string serverLabel, string name, string arguments);
member this.OutputItemMcpApprovalRequest : string * string * string -> seq<Azure.AI.AgentServer.Responses.Models.ResponseStreamEvent>
Public Iterator Function OutputItemMcpApprovalRequest (serverLabel As String, name As String, arguments As String) As IEnumerable(Of ResponseStreamEvent)

Parameters

serverLabel
String

The label of the MCP server.

name
String

The name of the tool requiring approval.

arguments
String

The arguments JSON for the tool call.

Returns

An enumerable of events: output_item.addedoutput_item.done.

Applies to