MCPToolResource 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 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. |