ApplicationOptions 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 |
|---|---|
| ApplicationOptions(ApplicationOptions) | |
| ApplicationOptions(Action<IServiceCollection>, Func<ILoggerFactory>, String, IFoundryToolRuntime, IUserProvider, IEnumerable<Object>) |
Configuration options for the agent server application. |
ApplicationOptions(ApplicationOptions)
- Source:
- ApplicationOptions.cs
protected ApplicationOptions(Azure.AI.AgentServer.Core.Context.ApplicationOptions original);
Protected Sub New (original As ApplicationOptions)
Parameters
- original
- ApplicationOptions
Applies to
ApplicationOptions(Action<IServiceCollection>, Func<ILoggerFactory>, String, IFoundryToolRuntime, IUserProvider, IEnumerable<Object>)
- Source:
- ApplicationOptions.cs
Configuration options for the agent server application.
public ApplicationOptions(Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> ConfigureServices, Func<Microsoft.Extensions.Logging.ILoggerFactory>? LoggerFactory = default, string TelemetrySourceName = "Agents", Azure.AI.AgentServer.Core.Tools.Runtime.IFoundryToolRuntime? ToolRuntime = default, Azure.AI.AgentServer.Core.Tools.Runtime.User.IUserProvider? UserProvider = default, System.Collections.Generic.IEnumerable<object>? AgentTools = default);
new Azure.AI.AgentServer.Core.Context.ApplicationOptions : Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> * Func<Microsoft.Extensions.Logging.ILoggerFactory> * string * Azure.AI.AgentServer.Core.Tools.Runtime.IFoundryToolRuntime * Azure.AI.AgentServer.Core.Tools.Runtime.User.IUserProvider * seq<obj> -> Azure.AI.AgentServer.Core.Context.ApplicationOptions
Public Sub New (ConfigureServices As Action(Of IServiceCollection), Optional LoggerFactory As Func(Of ILoggerFactory) = Nothing, Optional TelemetrySourceName As String = "Agents", Optional ToolRuntime As IFoundryToolRuntime = Nothing, Optional UserProvider As IUserProvider = Nothing, Optional AgentTools As IEnumerable(Of Object) = Nothing)
Parameters
- ConfigureServices
- Action<IServiceCollection>
Action to configure application services.
- LoggerFactory
- Func<ILoggerFactory>
Optional factory for creating loggers.
- TelemetrySourceName
- String
The name of the telemetry source. Defaults to "Agents".
- ToolRuntime
- IFoundryToolRuntime
Optional tool runtime for accessing and invoking tools. If not provided, the application will check if IFoundryToolRuntime is registered in the service collection.
- UserProvider
- Azure.AI.AgentServer.Core.Tools.Runtime.User.IUserProvider
Optional user provider for resolving user context. If not provided, defaults to Azure.AI.AgentServer.Core.Tools.Runtime.User.AsyncLocalUserProvider which reads from AsyncLocal storage set by middleware.
- AgentTools
- IEnumerable<Object>
Optional collection of agent tool definitions to include in agent run contexts. Tools can be FoundryTool instances or dictionary-based facades.