你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MCPToolResource Class

Definition

A set of resources that are used by the mcp tool.

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

Constructors

MCPToolResource(String, IDictionary<String,String>)

Initializes a new instance of MCPToolResource.

MCPToolResource(String)

Initializes a new instance of MCPToolResource.

Properties

Headers

The headers for the MCP server updates.

RequireApproval

Get or set the MCP approval.

ServerLabel

The label for the MCP server.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
ToToolResources()

Creates a new ToolResources instance with this MCPToolResource added to the Mcp collection.

UpdateHeader(String, String)

Adds or updates a header in the Headers dictionary.

Explicit Interface Implementations

IJsonModel<MCPToolResource>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MCPToolResource>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MCPToolResource>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MCPToolResource>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MCPToolResource>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to