ReportingConfiguration コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ReportingConfiguration クラスの新しいインスタンスを初期化します。
public ReportingConfiguration(System.Collections.Generic.IEnumerable<Microsoft.Extensions.AI.Evaluation.IEvaluator> evaluators, Microsoft.Extensions.AI.Evaluation.Reporting.IEvaluationResultStore resultStore, Microsoft.Extensions.AI.Evaluation.ChatConfiguration? chatConfiguration = default, Microsoft.Extensions.AI.Evaluation.Reporting.IEvaluationResponseCacheProvider? responseCacheProvider = default, System.Collections.Generic.IEnumerable<string>? cachingKeys = default, string executionName = "Default", Func<Microsoft.Extensions.AI.Evaluation.EvaluationMetric,Microsoft.Extensions.AI.Evaluation.EvaluationMetricInterpretation?>? evaluationMetricInterpreter = default, System.Collections.Generic.IEnumerable<string>? tags = default);
new Microsoft.Extensions.AI.Evaluation.Reporting.ReportingConfiguration : seq<Microsoft.Extensions.AI.Evaluation.IEvaluator> * Microsoft.Extensions.AI.Evaluation.Reporting.IEvaluationResultStore * Microsoft.Extensions.AI.Evaluation.ChatConfiguration * Microsoft.Extensions.AI.Evaluation.Reporting.IEvaluationResponseCacheProvider * seq<string> * string * Func<Microsoft.Extensions.AI.Evaluation.EvaluationMetric, Microsoft.Extensions.AI.Evaluation.EvaluationMetricInterpretation> * seq<string> -> Microsoft.Extensions.AI.Evaluation.Reporting.ReportingConfiguration
Public Sub New (evaluators As IEnumerable(Of IEvaluator), resultStore As IEvaluationResultStore, Optional chatConfiguration As ChatConfiguration = Nothing, Optional responseCacheProvider As IEvaluationResponseCacheProvider = Nothing, Optional cachingKeys As IEnumerable(Of String) = Nothing, Optional executionName As String = "Default", Optional evaluationMetricInterpreter As Func(Of EvaluationMetric, EvaluationMetricInterpretation) = Nothing, Optional tags As IEnumerable(Of String) = Nothing)
パラメーター
- evaluators
- IEnumerable<IEvaluator>
AI 応答を評価するために呼び出す必要がある IEvaluatorのセット。
- resultStore
- IEvaluationResultStore
ScenarioRunResultを保持するために使用する必要があるIEvaluationResultStore。
- chatConfiguration
- ChatConfiguration
このReportingConfigurationに含まれる AI ベースのevaluatorsによって使用されるIChatClientを指定するChatConfiguration。 含まれる evaluators が AI ベースでない場合は省略できます。
- responseCacheProvider
- IEvaluationResponseCacheProvider
AI 応答をキャッシュするために使用する必要がある IEvaluationResponseCacheProvider 。 省略すると、AI 応答はキャッシュされません。
- cachingKeys
- IEnumerable<String>
キャッシュされた AI 応答のキャッシュ キーを生成するときにハッシュする必要がある一意の文字列の省略可能なコレクション。 この概念の詳細については、 CachingKeys を参照してください。
- executionName
- String
現在の実行の名前。 この概念の詳細については、 ExecutionName を参照してください。 省略した場合は、固定の既定値 "Default" を使用します。
- evaluationMetricInterpreter
- Func<EvaluationMetric,EvaluationMetricInterpretation>
このReportingConfigurationを使用する評価から返されるEvaluationMetricのEvaluationMetricInterpretationをオーバーライドするために使用できる省略可能な関数。
指定された関数は、その関数に指定されたEvaluationMetricInterpretationに対して新しいEvaluationMetricを返すか、nullを変更せずに残す必要がある場合はInterpretationを返すことができます。
- tags
- IEnumerable<String>
このReportingConfigurationを使用して作成されたすべてのScenarioRunに適用できるテキスト タグのオプション セット。