ChatConfiguration(IChatClient, IEvaluationTokenCounter) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.