Share via


FoundryToolRuntime Constructors

Definition

Overloads

FoundryToolRuntime(FoundryToolClient, IFoundryToolCatalog, IFoundryToolInvocationResolver)

Source:
FoundryToolRuntime.cs

Initializes a new instance of the FoundryToolRuntime class with custom catalog and invocation resolver.

public FoundryToolRuntime(Azure.AI.AgentServer.Core.Tools.FoundryToolClient client, Azure.AI.AgentServer.Core.Tools.Runtime.Catalog.IFoundryToolCatalog catalog, Azure.AI.AgentServer.Core.Tools.Runtime.Invocation.IFoundryToolInvocationResolver invocation);
new Azure.AI.AgentServer.Core.Tools.Runtime.FoundryToolRuntime : Azure.AI.AgentServer.Core.Tools.FoundryToolClient * Azure.AI.AgentServer.Core.Tools.Runtime.Catalog.IFoundryToolCatalog * Azure.AI.AgentServer.Core.Tools.Runtime.Invocation.IFoundryToolInvocationResolver -> Azure.AI.AgentServer.Core.Tools.Runtime.FoundryToolRuntime
Public Sub New (client As FoundryToolClient, catalog As IFoundryToolCatalog, invocation As IFoundryToolInvocationResolver)

Parameters

client
FoundryToolClient

The Foundry tool client.

catalog
IFoundryToolCatalog

The tool catalog.

invocation
IFoundryToolInvocationResolver

The tool invocation resolver.

Applies to

FoundryToolRuntime(Uri, TokenCredential, FoundryToolClientOptions, IUserProvider, Nullable<TimeSpan>)

Source:
FoundryToolRuntime.cs

Initializes a new instance of the FoundryToolRuntime class.

public FoundryToolRuntime(Uri endpoint, Azure.Core.TokenCredential credential, Azure.AI.AgentServer.Core.Tools.FoundryToolClientOptions? options = default, Azure.AI.AgentServer.Core.Tools.Runtime.User.IUserProvider? userProvider = default, TimeSpan? cacheTtl = default);
new Azure.AI.AgentServer.Core.Tools.Runtime.FoundryToolRuntime : Uri * Azure.Core.TokenCredential * Azure.AI.AgentServer.Core.Tools.FoundryToolClientOptions * Azure.AI.AgentServer.Core.Tools.Runtime.User.IUserProvider * Nullable<TimeSpan> -> Azure.AI.AgentServer.Core.Tools.Runtime.FoundryToolRuntime
Public Sub New (endpoint As Uri, credential As TokenCredential, Optional options As FoundryToolClientOptions = Nothing, Optional userProvider As IUserProvider = Nothing, Optional cacheTtl As Nullable(Of TimeSpan) = Nothing)

Parameters

endpoint
Uri

The Azure AI endpoint URL.

credential
TokenCredential

The token credential for authentication.

options
FoundryToolClientOptions

Optional client options.

userProvider
Azure.AI.AgentServer.Core.Tools.Runtime.User.IUserProvider

Optional user provider for resolving user context.

cacheTtl
Nullable<TimeSpan>

Optional cache TTL for tool metadata. Defaults to 10 minutes.

Applies to