FoundryToolRuntime Constructors
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.
Overloads
| 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. |
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.