ResponseEventStream.OutputItemMcpApprovalRequest 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.
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.added → output_item.done.