Share via


ApplicationOptions Class

Definition

Configuration options for the agent server application.

public class ApplicationOptions : IEquatable<Azure.AI.AgentServer.Core.Context.ApplicationOptions>
type ApplicationOptions = class
    interface IEquatable<ApplicationOptions>
Public Class ApplicationOptions
Implements IEquatable(Of ApplicationOptions)
Inheritance
ApplicationOptions
Implements

Constructors

Name Description
ApplicationOptions(Action<IServiceCollection>, Func<ILoggerFactory>, String, IFoundryToolRuntime, IUserProvider, IEnumerable<Object>)

Configuration options for the agent server application.

ApplicationOptions(ApplicationOptions)

Properties

Name Description
AgentTools

Optional collection of agent tool definitions to include in agent run contexts. Tools can be FoundryTool instances or dictionary-based facades.

ConfigureServices

Action to configure application services.

EqualityContract
LoggerFactory

Optional factory for creating loggers.

TelemetrySourceName

The name of the telemetry source. Defaults to "Agents".

ToolRuntime

Optional tool runtime for accessing and invoking tools. If not provided, the application will check if IFoundryToolRuntime is registered in the service collection.

UserProvider

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.

Methods

Name Description
<Clone>$()
Deconstruct(Action<IServiceCollection>, Func<ILoggerFactory>, String, IFoundryToolRuntime, IUserProvider, IEnumerable<Object>)
Equals(ApplicationOptions)
Equals(Object)
GetHashCode()
PrintMembers(StringBuilder)
ToString()

Operators

Name Description
Equality(ApplicationOptions, ApplicationOptions)
Inequality(ApplicationOptions, ApplicationOptions)

Applies to