FoundryToolRuntime 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 IFoundryToolRuntime that provides access to tool catalog and invocation capabilities with caching.
public class FoundryToolRuntime : Azure.AI.AgentServer.Core.Tools.Runtime.IFoundryToolRuntime, IAsyncDisposable
type FoundryToolRuntime = class
interface IFoundryToolRuntime
interface IAsyncDisposable
Public Class FoundryToolRuntime
Implements IAsyncDisposable, IFoundryToolRuntime
- Inheritance
-
FoundryToolRuntime
- Implements
Constructors
| Name | Description |
|---|---|
| FoundryToolRuntime(FoundryToolClient, IFoundryToolCatalog, IFoundryToolInvocationResolver) |
Initializes a new instance of the FoundryToolRuntime class with custom catalog and invocation resolver. |
| FoundryToolRuntime(Uri, TokenCredential, FoundryToolClientOptions, IUserProvider, Nullable<TimeSpan>) |
Initializes a new instance of the FoundryToolRuntime class. |
Properties
| Name | Description |
|---|---|
| Catalog |
Gets the tool catalog for listing and resolving tools. |
| Invocation |
Gets the tool invocation resolver for invoking tools. |
Methods
| Name | Description |
|---|---|
| DisposeAsync() |
Disposes the runtime and releases resources. |
| InvokeAsync(Object, IDictionary<String,Object>, CancellationToken) |
Convenience method to invoke a tool directly by its definition. |