ExtensionsOpenAIModelFactory.OutputItemMcpApprovalResponseResource Method

Definition

MCP approval response.

public static Azure.AI.Extensions.OpenAI.OutputItemMcpApprovalResponseResource OutputItemMcpApprovalResponseResource(string id = default, Azure.AI.Extensions.OpenAI.AgentReference agentReference = default, string responseId = default, string approvalRequestId = default, bool isApproved = false, string reason = default);
static member OutputItemMcpApprovalResponseResource : string * Azure.AI.Extensions.OpenAI.AgentReference * string * string * bool * string -> Azure.AI.Extensions.OpenAI.OutputItemMcpApprovalResponseResource
Public Shared Function OutputItemMcpApprovalResponseResource (Optional id As String = Nothing, Optional agentReference As AgentReference = Nothing, Optional responseId As String = Nothing, Optional approvalRequestId As String = Nothing, Optional isApproved As Boolean = false, Optional reason As String = Nothing) As OutputItemMcpApprovalResponseResource

Parameters

id
String
agentReference
AgentReference

The agent that created the item.

responseId
String

The response on which the item is created.

approvalRequestId
String

The ID of the approval request being answered.

isApproved
Boolean

Whether the request was approved.

reason
String

Returns

A new OutputItemMcpApprovalResponseResource instance for mocking.

Applies to