MCPCallItemResource 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.
An invocation of a tool on an MCP server.
public class MCPCallItemResource : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemResource, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPCallItemResource>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPCallItemResource>
type MCPCallItemResource = class
inherit ItemResource
interface IUtf8JsonSerializable
interface IJsonModel<MCPCallItemResource>
interface IPersistableModel<MCPCallItemResource>
Public Class MCPCallItemResource
Inherits ItemResource
Implements IJsonModel(Of MCPCallItemResource), IPersistableModel(Of MCPCallItemResource)
- Inheritance
- Implements
Constructors
| Name | Description |
|---|---|
| MCPCallItemResource() |
Initializes a new instance of MCPCallItemResource for deserialization. |
| MCPCallItemResource(ItemType, String, CreatedBy, IDictionary<String,BinaryData>, String, String, String, String, String) |
Initializes a new instance of MCPCallItemResource. |
| MCPCallItemResource(String, String, String, String) |
Initializes a new instance of MCPCallItemResource. |
Properties
| Name | Description |
|---|---|
| Arguments |
A JSON string of the arguments passed to the tool. |
| CreatedBy |
The information about the creator of the item. (Inherited from ItemResource) |
| Error |
The error from the tool call, if any. |
| Id |
Gets the id. (Inherited from ItemResource) |
| Name |
The name of the tool that was run. |
| Output |
The output from the tool call. |
| ServerLabel |
The label of the MCP server running the tool. |
| Type |
Gets or sets the type. (Inherited from ItemResource) |
Methods
| Name | Description |
|---|---|
| DeserializeMCPCallItemResource(JsonElement, ModelReaderWriterOptions) | |
| FromResponse(Response) |
Deserializes the model from a raw response. |
| JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) | |
| ToRequestContent() |
Convert into a RequestContent. |