Share via


FoundryToolRuntime Class

Definition

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.

Applies to