Share via


MCPApprovalPerTool Class

Definition

Customized MCP approval object, listing tools requiring and not requiring approvals.

public class MCPApprovalPerTool : System.ClientModel.Primitives.IJsonModel<Azure.AI.Agents.Persistent.MCPApprovalPerTool>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Agents.Persistent.MCPApprovalPerTool>
type MCPApprovalPerTool = class
    interface IJsonModel<MCPApprovalPerTool>
    interface IPersistableModel<MCPApprovalPerTool>
Public Class MCPApprovalPerTool
Implements IJsonModel(Of MCPApprovalPerTool), IPersistableModel(Of MCPApprovalPerTool)
Inheritance
MCPApprovalPerTool
Implements

Constructors

Name Description
MCPApprovalPerTool()

Initializes a new instance of MCPApprovalPerTool.

Properties

Name Description
Always

The list of tools, always requiring approval.

Never

The list of tools, not requiring approval.

Methods

Name Description
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<MCPApprovalPerTool>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<MCPApprovalPerTool>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MCPApprovalPerTool>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MCPApprovalPerTool>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<MCPApprovalPerTool>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to