Configuration
March 18, 2026 · View on GitHub
Namespace: Microsoft.AI.Foundry.Local
public class Configuration
Inheritance Object → Configuration
Attributes NullableContextAttribute, NullableAttribute, RequiredMemberAttribute
Properties
AppName
Your application name. MUST be set to a valid name.
public string AppName { get; set; }
Property Value
AppDataDir
Application data directory. Default: {home}/.{appname}, where {home} is the user's home directory and {appname} is the AppName value.
public string AppDataDir { get; set; }
Property Value
ModelCacheDir
Model cache directory. Default: {appdata}/cache/models, where {appdata} is the AppDataDir value.
public string ModelCacheDir { get; set; }
Property Value
LogsDir
Log directory. Default: {appdata}/logs
public string LogsDir { get; set; }
Property Value
LogLevel
Logging level. Valid values are: Verbose, Debug, Information, Warning, Error, Fatal. Default: LogLevel.Warning
public LogLevel LogLevel { get; set; }
Property Value
Web
Optional configuration for the built-in web service. NOTE: This is not included in all builds.
public WebService Web { get; set; }
Property Value
AdditionalSettings
Additional settings that Foundry Local Core can consume. Keys and values are strings.
public IDictionary<string, string> AdditionalSettings { get; set; }
Property Value
Constructors
Configuration()
Caution
Constructors of types with required members are not supported in this version of your compiler.
public Configuration()