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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.