MCPListToolsItemResource Constructors
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.
Overloads
| Name | Description |
|---|---|
| MCPListToolsItemResource() |
Initializes a new instance of MCPListToolsItemResource for deserialization. |
| MCPListToolsItemResource(String, String, IEnumerable<MCPListToolsTool>) |
Initializes a new instance of MCPListToolsItemResource. |
| MCPListToolsItemResource(ItemType, String, CreatedBy, IDictionary<String,BinaryData>, String, IReadOnlyList<MCPListToolsTool>, String) |
Initializes a new instance of MCPListToolsItemResource. |
MCPListToolsItemResource()
- Source:
- MCPListToolsItemResource.cs
Initializes a new instance of MCPListToolsItemResource for deserialization.
public MCPListToolsItemResource();
Public Sub New ()
Applies to
MCPListToolsItemResource(String, String, IEnumerable<MCPListToolsTool>)
- Source:
- MCPListToolsItemResource.cs
Initializes a new instance of MCPListToolsItemResource.
public MCPListToolsItemResource(string id, string serverLabel, System.Collections.Generic.IEnumerable<Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPListToolsTool> tools);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPListToolsItemResource : string * string * seq<Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPListToolsTool> -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPListToolsItemResource
Public Sub New (id As String, serverLabel As String, tools As IEnumerable(Of MCPListToolsTool))
Parameters
- id
- String
- serverLabel
- String
The label of the MCP server.
- tools
- IEnumerable<MCPListToolsTool>
The tools available on the server.
Exceptions
id, serverLabel or tools is null.
Applies to
MCPListToolsItemResource(ItemType, String, CreatedBy, IDictionary<String,BinaryData>, String, IReadOnlyList<MCPListToolsTool>, String)
- Source:
- MCPListToolsItemResource.cs
Initializes a new instance of MCPListToolsItemResource.
public MCPListToolsItemResource(Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemType type, string id, Azure.AI.AgentServer.Contracts.Generated.OpenAI.CreatedBy createdBy, System.Collections.Generic.IDictionary<string,BinaryData> serializedAdditionalRawData, string serverLabel, System.Collections.Generic.IReadOnlyList<Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPListToolsTool> tools, string error);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPListToolsItemResource : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemType * string * Azure.AI.AgentServer.Contracts.Generated.OpenAI.CreatedBy * System.Collections.Generic.IDictionary<string, BinaryData> * string * System.Collections.Generic.IReadOnlyList<Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPListToolsTool> * string -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPListToolsItemResource
Public Sub New (type As ItemType, id As String, createdBy As CreatedBy, serializedAdditionalRawData As IDictionary(Of String, BinaryData), serverLabel As String, tools As IReadOnlyList(Of MCPListToolsTool), error As String)
Parameters
- type
- ItemType
- id
- String
- createdBy
- CreatedBy
The information about the creator of the item.
- serializedAdditionalRawData
- IDictionary<String,BinaryData>
Keeps track of any properties unknown to the library.
- serverLabel
- String
The label of the MCP server.
- tools
- IReadOnlyList<MCPListToolsTool>
The tools available on the server.
- error
- String
Error message if the server could not list tools.