ProjectsAgentsModelFactory.A2APreviewTool Method

Definition

An agent implementing the A2A protocol.

public static Azure.AI.Projects.Agents.A2APreviewTool A2APreviewTool(Uri baseUri = default, string agentCardPath = default, string projectConnectionId = default, bool? sendCredentialsForAgentCard = default);
static member A2APreviewTool : Uri * string * string * Nullable<bool> -> Azure.AI.Projects.Agents.A2APreviewTool
Public Shared Function A2APreviewTool (Optional baseUri As Uri = Nothing, Optional agentCardPath As String = Nothing, Optional projectConnectionId As String = Nothing, Optional sendCredentialsForAgentCard As Nullable(Of Boolean) = Nothing) As A2APreviewTool

Parameters

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.

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

Returns

A new A2APreviewTool instance for mocking.

Applies to