DefaultFoundryToolCatalog Class
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.
Default implementation of IFoundryToolCatalog with TTL-based caching. Uses FoundryToolClient to fetch tool metadata from Azure AI services.
public class DefaultFoundryToolCatalog : Azure.AI.AgentServer.Core.Tools.Runtime.Catalog.CachedFoundryToolCatalog
type DefaultFoundryToolCatalog = class
inherit CachedFoundryToolCatalog
Public Class DefaultFoundryToolCatalog
Inherits CachedFoundryToolCatalog
- Inheritance
Constructors
| Name | Description |
|---|---|
| DefaultFoundryToolCatalog(FoundryToolClient, IUserProvider, Nullable<TimeSpan>, Int64) |
Initializes a new instance of the DefaultFoundryToolCatalog class. |
Methods
| Name | Description |
|---|---|
| ClearCache() |
Clears all cached tool metadata. Useful for testing or manual cache invalidation. (Inherited from CachedFoundryToolCatalog) |
| Dispose() |
Disposes the catalog and releases resources. (Inherited from CachedFoundryToolCatalog) |
| Dispose(Boolean) |
Disposes the catalog and releases resources. (Inherited from CachedFoundryToolCatalog) |
| FetchToolsAsync(IReadOnlyList<FoundryTool>, UserInfo, CancellationToken) |
Fetches tool metadata from Azure AI services using the Foundry tool client. |
| GetAsync(Object, CancellationToken) |
Gets a single resolved tool by its definition. (Inherited from CachedFoundryToolCatalog) |
| GetUserContextAsync(CancellationToken) |
Gets the user context for the current request from the user provider. |
| ListAsync(IEnumerable<Object>, CancellationToken) |
Lists multiple resolved tools by their definitions. Uses Task-based deduplication to prevent concurrent fetches of the same tool. (Inherited from CachedFoundryToolCatalog) |