IntentResolutionEvaluatorContext 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用于评估 AI 系统在识别和解决用户意向方面的有效性的上下文信息 IntentResolutionEvaluator 。
public ref class IntentResolutionEvaluatorContext sealed : Microsoft::Extensions::AI::Evaluation::EvaluationContext
[System.Diagnostics.CodeAnalysis.Experimental("AIEVAL001")]
public sealed class IntentResolutionEvaluatorContext : Microsoft.Extensions.AI.Evaluation.EvaluationContext
public sealed class IntentResolutionEvaluatorContext : Microsoft.Extensions.AI.Evaluation.EvaluationContext
[<System.Diagnostics.CodeAnalysis.Experimental("AIEVAL001")>]
type IntentResolutionEvaluatorContext = class
inherit EvaluationContext
type IntentResolutionEvaluatorContext = class
inherit EvaluationContext
Public NotInheritable Class IntentResolutionEvaluatorContext
Inherits EvaluationContext
- 继承
- 特性
注解
IntentResolutionEvaluator 根据提供的聊天历史记录和通过提供 ToolDefinitions的工具定义来评估 AI 系统识别和解析用户意向的有效性。
请注意,目前, IntentResolutionEvaluator 仅支持评估对定义为 AIFunctionDeclarations 的工具的调用。 将忽略通过ToolDefinitions提供的任何其他AITool定义。
构造函数
| 名称 | 说明 |
|---|---|
| IntentResolutionEvaluatorContext(AITool[]) |
初始化 IntentResolutionEvaluatorContext 类的新实例。 |
| IntentResolutionEvaluatorContext(IEnumerable<AITool>) |
初始化 IntentResolutionEvaluatorContext 类的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| Contents |
获取或设置一个对象列表 AIContent ,这些对象包含此 EvaluationContext内容中的所有信息。 (继承自 EvaluationContext) |
| Name |
获取或设置此 EvaluationContext名称。 (继承自 EvaluationContext) |
| ToolDefinitions |
获取生成正在评估的模型响应时使用的工具定义集(请参阅 Tools)。 |
| ToolDefinitionsContextName |
获取用于IntentResolutionEvaluatorContext的唯Name一项。 |