| File: Defaults.cs | Web Access |
| Project: src\src\Libraries\Microsoft.Extensions.AI.Evaluation.Reporting\CSharp\Microsoft.Extensions.AI.Evaluation.Reporting.csproj (Microsoft.Extensions.AI.Evaluation.Reporting) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Threading; namespace Microsoft.Extensions.AI.Evaluation.Reporting; /// <summary> /// A static class that contains default values for various reporting artifacts. /// </summary> public static class Defaults { /// <summary> /// The default execution name that should be used if one was not specified as part of the /// <see cref="ReportingConfiguration"/>. /// </summary> public const string DefaultExecutionName = "Default"; /// <summary> /// The default iteration name that should be used if one was not specified when creating a /// <see cref="ScenarioRun"/> via /// <see cref="ReportingConfiguration.CreateScenarioRunAsync(string, string, IEnumerable{string}?, IEnumerable{string}?, CancellationToken)"/>. /// </summary> public const string DefaultIterationName = "1"; /// <summary> /// Gets a <see cref="TimeSpan"/> that specifies the default amount of time that cached AI responses should survive /// in the <see cref="IEvaluationResponseCacheProvider"/>'s cache before they are considered expired and evicted. /// </summary> public static TimeSpan DefaultTimeToLiveForCacheEntries { get; } = TimeSpan.FromDays(14); // Defines the version number for the reporting format. If and when the serialized format undergoes // breaking changes, this number should be incremented. internal const int ReportingFormatVersion = 1; }