IFoundryToolCatalog.GetAsync(Object, CancellationToken) 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.
Gets a single resolved tool by its definition.
public System.Threading.Tasks.Task<Azure.AI.AgentServer.Core.Tools.Models.ResolvedFoundryTool?> GetAsync(object tool, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.AI.AgentServer.Core.Tools.Models.ResolvedFoundryTool>
Public Function GetAsync (tool As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResolvedFoundryTool)
Parameters
- tool
- Object
The tool definition. This can be a FoundryTool instance or a dictionary-based facade that will be converted to a FoundryTool using FoundryToolFactory.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
A task representing the asynchronous operation. The task result contains the resolved tool, or null if the tool could not be resolved.