Share via


A2ATool Class

Definition

An agent implementing the A2A protocol.

public class A2ATool : Azure.AI.AgentServer.Contracts.Generated.OpenAI.Tool, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.A2ATool>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.A2ATool>
type A2ATool = class
    inherit Tool
    interface IUtf8JsonSerializable
    interface IJsonModel<A2ATool>
    interface IPersistableModel<A2ATool>
Public Class A2ATool
Inherits Tool
Implements IJsonModel(Of A2ATool), IPersistableModel(Of A2ATool)
Inheritance
A2ATool
Implements

Constructors

Name Description
A2ATool()

Initializes a new instance of A2ATool.

A2ATool(ToolType, IDictionary<String,BinaryData>, Uri, String, String)

Initializes a new instance of A2ATool.

Properties

Name Description
AgentCardPath

The path to the agent card relative to the base_url. If not provided, defaults to /.well-known/agent-card.json

BaseUrl

Base URL of the agent.

ProjectConnectionId

The connection ID in the project for the A2A server. The connection stores authentication and other connection details needed to connect to the A2A server.

Type

Gets or sets the type.

(Inherited from Tool)

Methods

Name Description
DeserializeA2ATool(JsonElement, ModelReaderWriterOptions)
FromResponse(Response)

Deserializes the model from a raw response.

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
ToRequestContent()

Convert into a RequestContent.

Explicit Interface Implementations

Name Description
IJsonModel<A2ATool>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<A2ATool>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<Tool>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

(Inherited from Tool)
IJsonModel<Tool>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from Tool)
IPersistableModel<A2ATool>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<A2ATool>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<A2ATool>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<Tool>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from Tool)
IPersistableModel<Tool>.GetFormatFromOptions(ModelReaderWriterOptions)

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

(Inherited from Tool)
IPersistableModel<Tool>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from Tool)
IUtf8JsonSerializable.Write(Utf8JsonWriter)

Applies to