Jaa


ChatConfiguration(IChatClient, IEvaluationTokenCounter) Constructor

Definition

Specifies the IChatClient and the IEvaluationTokenCounter that should be used when evaluation is performed using an AI model.

public ChatConfiguration (Microsoft.Extensions.AI.IChatClient chatClient, Microsoft.Extensions.AI.Evaluation.IEvaluationTokenCounter? tokenCounter = default);
new Microsoft.Extensions.AI.Evaluation.ChatConfiguration : Microsoft.Extensions.AI.IChatClient * Microsoft.Extensions.AI.Evaluation.IEvaluationTokenCounter -> Microsoft.Extensions.AI.Evaluation.ChatConfiguration
Public Sub New (chatClient As IChatClient, Optional tokenCounter As IEvaluationTokenCounter = Nothing)

Parameters

chatClient
IChatClient

An IChatClient that can be used to communicate with an AI model.

tokenCounter
IEvaluationTokenCounter

An IEvaluationTokenCounter that can be used to counts tokens present in evaluation prompts, or null if the AI model / deployment being used does not impose an input token limit.

Applies to