ItemMcpToolCall Class

Definition

MCP tool call.

public class ItemMcpToolCall : Azure.AI.AgentServer.Responses.Models.Item, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Responses.Models.ItemMcpToolCall>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Responses.Models.ItemMcpToolCall>
type ItemMcpToolCall = class
    inherit Item
    interface IJsonModel<ItemMcpToolCall>
    interface IPersistableModel<ItemMcpToolCall>
Public Class ItemMcpToolCall
Inherits Item
Implements IJsonModel(Of ItemMcpToolCall), IPersistableModel(Of ItemMcpToolCall)
Inheritance
ItemMcpToolCall
Implements

Constructors

Name Description
ItemMcpToolCall(String, String, String, String)

Initializes a new instance of ItemMcpToolCall.

Properties

Name Description
ApprovalRequestId

Gets or sets the ApprovalRequestId.

Arguments

A JSON string of the arguments passed to the tool.

Error

Gets the Error.

To assign an object to the value of this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"). : Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""). : Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }). : Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"). : Creates a payload of { "key": "value" }.

Id

The unique ID of the tool call.

Name

The name of the tool that was run.

Output

Gets or sets the Output.

ServerLabel

The label of the MCP server running the tool.

Status

The status of the tool call. One of in_progress, completed, incomplete, calling, or failed.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<Item>.Create(Utf8JsonReader, ModelReaderWriterOptions) (Inherited from Item)
IJsonModel<Item>.Write(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from Item)
IJsonModel<ItemMcpToolCall>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<ItemMcpToolCall>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<Item>.Create(BinaryData, ModelReaderWriterOptions) (Inherited from Item)
IPersistableModel<Item>.GetFormatFromOptions(ModelReaderWriterOptions) (Inherited from Item)
IPersistableModel<Item>.Write(ModelReaderWriterOptions) (Inherited from Item)
IPersistableModel<ItemMcpToolCall>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<ItemMcpToolCall>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<ItemMcpToolCall>.Write(ModelReaderWriterOptions)

Applies to