Share via


A2ATool Class

Definition

An agent implementing the A2A protocol.

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

Constructors

Name Description
A2ATool(Uri)

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

BaseUri

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.

Methods

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

Explicit Interface Implementations

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

Applies to