ProjectsAgentTool.CreateA2ATool(Uri, String) Method

Definition

Creates a new tool that lets the agent communicate with another agent over the Agent-to-Agent (A2A) protocol.

public static OpenAI.Responses.ResponseTool CreateA2ATool(Uri baseUri, string agentCardPath = default);
static member CreateA2ATool : Uri * string -> OpenAI.Responses.ResponseTool
Public Shared Function CreateA2ATool (baseUri As Uri, Optional agentCardPath As String = Nothing) As ResponseTool

Parameters

baseUri
Uri

The base URI of the remote agent endpoint.

agentCardPath
String

Optional path to the remote agent's agent card.

Returns

OpenAI.Responses.ResponseTool

Applies to