A2AAgent 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 |
|---|---|
| A2AAgent(IA2AClient, A2AAgentOptions, ILoggerFactory) |
Initializes a new instance of the A2AAgent class. |
| A2AAgent(IA2AClient, String, String, String, ILoggerFactory) |
Initializes a new instance of the A2AAgent class. |
A2AAgent(IA2AClient, A2AAgentOptions, ILoggerFactory)
Initializes a new instance of the A2AAgent class.
public A2AAgent(A2A.IA2AClient a2aClient, Microsoft.Agents.AI.A2A.A2AAgentOptions options, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.Agents.AI.A2A.A2AAgent : A2A.IA2AClient * Microsoft.Agents.AI.A2A.A2AAgentOptions * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.Agents.AI.A2A.A2AAgent
Public Sub New (a2aClient As IA2AClient, options As A2AAgentOptions, Optional loggerFactory As ILoggerFactory = Nothing)
Parameters
- a2aClient
- A2A.IA2AClient
The A2A client to use for interacting with A2A agents.
- options
- A2AAgentOptions
Configuration options that control the agent's identity, including its identifier, name, and description.
- loggerFactory
- ILoggerFactory
Optional logger factory to use for logging.
Applies to
A2AAgent(IA2AClient, String, String, String, ILoggerFactory)
Initializes a new instance of the A2AAgent class.
public A2AAgent(A2A.IA2AClient a2aClient, string? id = default, string? name = default, string? description = default, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.Agents.AI.A2A.A2AAgent : A2A.IA2AClient * string * string * string * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.Agents.AI.A2A.A2AAgent
Public Sub New (a2aClient As IA2AClient, Optional id As String = Nothing, Optional name As String = Nothing, Optional description As String = Nothing, Optional loggerFactory As ILoggerFactory = Nothing)
Parameters
- a2aClient
- A2A.IA2AClient
The A2A client to use for interacting with A2A agents.
- id
- String
The unique identifier for the agent.
- name
- String
The name of the agent.
- description
- String
The description of the agent.
- loggerFactory
- ILoggerFactory
Optional logger factory to use for logging.