MCPApprovalRequestItemParam Class
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.
A request for human approval of a tool invocation.
public class MCPApprovalRequestItemParam : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemParam, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPApprovalRequestItemParam>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPApprovalRequestItemParam>
type MCPApprovalRequestItemParam = class
inherit ItemParam
interface IUtf8JsonSerializable
interface IJsonModel<MCPApprovalRequestItemParam>
interface IPersistableModel<MCPApprovalRequestItemParam>
Public Class MCPApprovalRequestItemParam
Inherits ItemParam
Implements IJsonModel(Of MCPApprovalRequestItemParam), IPersistableModel(Of MCPApprovalRequestItemParam)
- Inheritance
- Implements
Constructors
| Name | Description |
|---|---|
| MCPApprovalRequestItemParam() |
Initializes a new instance of MCPApprovalRequestItemParam for deserialization. |
| MCPApprovalRequestItemParam(ItemType, IDictionary<String,BinaryData>, String, String, String) |
Initializes a new instance of MCPApprovalRequestItemParam. |
| MCPApprovalRequestItemParam(String, String, String) |
Initializes a new instance of MCPApprovalRequestItemParam. |
Properties
| Name | Description |
|---|---|
| Arguments |
A JSON string of arguments for the tool. |
| Name |
The name of the tool to run. |
| SerializedAdditionalRawData | (Inherited from ItemParam) |
| ServerLabel |
The label of the MCP server making the request. |
| Type |
Gets or sets the type. (Inherited from ItemParam) |
Methods
| Name | Description |
|---|---|
| DeserializeMCPApprovalRequestItemParam(JsonElement, ModelReaderWriterOptions) | |
| FromResponse(Response) |
Deserializes the model from a raw response. |
| JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) | |
| ToRequestContent() |
Convert into a RequestContent. |