Lingua

ProjectsAgentsModelFactory.A2AToolboxTool Method

Definition

An A2A tool stored in a toolbox.

public static Azure.AI.Projects.Agents.A2AToolboxTool A2AToolboxTool(string name = default, string description = default, System.Collections.Generic.IDictionary<string,Azure.AI.Extensions.OpenAI.ToolConfig> toolConfigs = default, Uri baseUrl = default, string agentCardPath = default, string projectConnectionId = default, bool? sendCredentialsForAgentCard = default, Azure.AI.Projects.Agents.A2AProtocolVersion a2aVersion = default);
static member A2AToolboxTool : string * string * System.Collections.Generic.IDictionary<string, Azure.AI.Extensions.OpenAI.ToolConfig> * Uri * string * string * Nullable<bool> * Azure.AI.Projects.Agents.A2AProtocolVersion -> Azure.AI.Projects.Agents.A2AToolboxTool
Public Shared Function A2AToolboxTool (Optional name As String = Nothing, Optional description As String = Nothing, Optional toolConfigs As IDictionary(Of String, ToolConfig) = Nothing, Optional baseUrl As Uri = Nothing, Optional agentCardPath As String = Nothing, Optional projectConnectionId As String = Nothing, Optional sendCredentialsForAgentCard As Nullable(Of Boolean) = Nothing, Optional a2aVersion As A2AProtocolVersion = Nothing) As A2AToolboxTool

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.

baseUrl
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.

sendCredentialsForAgentCard
Nullable<Boolean>

When true, Foundry sends its credentials when fetching the remote agent's Agent Card. The service defaults to false if a value is not specified by the caller (anonymous fetch).

a2aVersion
A2AProtocolVersion

The A2A protocol version supported by the agent.

Returns

A new A2AToolboxTool instance for mocking.

Applies to