ProjectsAgentsModelFactory.A2APreviewTool Method

Definition

An agent implementing the A2A protocol.

public static Azure.AI.Projects.Agents.A2APreviewTool A2APreviewTool(string name = default, string description = default, System.Collections.Generic.IDictionary<string,Azure.AI.Projects.Agents.ToolConfig> toolConfigs = default, Uri baseUri = default, string agentCardPath = default, string projectConnectionId = default);
static member A2APreviewTool : string * string * System.Collections.Generic.IDictionary<string, Azure.AI.Projects.Agents.ToolConfig> * Uri * string * string -> Azure.AI.Projects.Agents.A2APreviewTool
Public Shared Function A2APreviewTool (Optional name As String = Nothing, Optional description As String = Nothing, Optional toolConfigs As IDictionary(Of String, ToolConfig) = Nothing, Optional baseUri As Uri = Nothing, Optional agentCardPath As String = Nothing, Optional projectConnectionId As String = Nothing) As A2APreviewTool

Parameters

name
String

Optional user-defined name for this tool or configuration.

description
String

Optional user-defined description for this tool or configuration.

toolConfigs
IDictionary<String,ToolConfig>

Per-tool configuration map. Keys are tool names or * (catch-all default). Resolution order: exact tool name match takes priority over *. Unknown tool names are silently ignored at runtime.

baseUri
Uri

Base URL of the agent.

agentCardPath
String

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

projectConnectionId
String

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.

Returns

A new A2APreviewTool instance for mocking.

Applies to