ProjectsAgentsModelFactory.ToolboxTool 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 abstract representation of a tool stored in a toolbox. Please note this is the abstract base class. The derived classes available for instantiation are: FabricIQPreviewToolboxTool, CodeInterpreterToolboxTool, FileSearchToolboxTool, WebSearchToolboxTool, MCPToolboxTool, AzureAISearchToolboxTool, OpenApiToolboxTool, A2APreviewToolboxTool, BrowserAutomationPreviewToolboxTool, ReminderPreviewToolboxTool, WorkIQPreviewToolboxTool, and ToolboxSearchPreviewToolboxTool.
public static Azure.AI.Projects.Agents.ToolboxTool ToolboxTool(string type = default, string name = default, string description = default, System.Collections.Generic.IDictionary<string,Azure.AI.Projects.Agents.ToolConfig> toolConfigs = default);
static member ToolboxTool : string * string * string * System.Collections.Generic.IDictionary<string, Azure.AI.Projects.Agents.ToolConfig> -> Azure.AI.Projects.Agents.ToolboxTool
Public Shared Function ToolboxTool (Optional type As String = Nothing, Optional name As String = Nothing, Optional description As String = Nothing, Optional toolConfigs As IDictionary(Of String, ToolConfig) = Nothing) As ToolboxTool
Parameters
- type
- String
The type of tool.
- 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.
Returns
A new ToolboxTool instance for mocking.