ResponseEventStream.OutputItemMcpApprovalResponse(String, Boolean) 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 response lifecycle.
MCP approval responses have no intermediate events — only output_item.added and
output_item.done.
public System.Collections.Generic.IEnumerable<Azure.AI.AgentServer.Responses.Models.ResponseStreamEvent> OutputItemMcpApprovalResponse(string approvalRequestId, bool approve);
member this.OutputItemMcpApprovalResponse : string * bool -> seq<Azure.AI.AgentServer.Responses.Models.ResponseStreamEvent>
Public Iterator Function OutputItemMcpApprovalResponse (approvalRequestId As String, approve As Boolean) As IEnumerable(Of ResponseStreamEvent)
Parameters
- approvalRequestId
- String
The ID of the approval request being responded to.
- approve
- Boolean
Whether the MCP tool call is approved.
Returns
An enumerable of events: output_item.added → output_item.done.