ProjectsAgentsModelFactory.A2APreviewToolboxTool Method
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.
An A2A tool stored in a toolbox.
public static Azure.AI.Projects.Agents.A2APreviewToolboxTool A2APreviewToolboxTool(string name = default, string description = default, System.Collections.Generic.IDictionary<string,Azure.AI.Projects.Agents.ToolConfig> toolConfigs = default, Uri baseUrl = default, string agentCardPath = default, string projectConnectionId = default, bool? sendCredentialsForAgentCard = default);
static member A2APreviewToolboxTool : string * string * System.Collections.Generic.IDictionary<string, Azure.AI.Projects.Agents.ToolConfig> * Uri * string * string * Nullable<bool> -> Azure.AI.Projects.Agents.A2APreviewToolboxTool
Public Shared Function A2APreviewToolboxTool (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) As A2APreviewToolboxTool
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.
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 A2APreviewToolboxTool instance for mocking.