ChatConversationEvaluator.RenderAsync(ChatMessage, CancellationToken) Method
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.
Renders the supplied message
to a string that can be included as part of the evaluation
prompt that this IEvaluator uses.
protected:
virtual System::Threading::Tasks::ValueTask<System::String ^> RenderAsync(Microsoft::Extensions::AI::ChatMessage ^ message, System::Threading::CancellationToken cancellationToken);
protected virtual System.Threading.Tasks.ValueTask<string> RenderAsync (Microsoft.Extensions.AI.ChatMessage message, System.Threading.CancellationToken cancellationToken);
abstract member RenderAsync : Microsoft.Extensions.AI.ChatMessage * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<string>
override this.RenderAsync : Microsoft.Extensions.AI.ChatMessage * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<string>
Protected Overridable Function RenderAsync (message As ChatMessage, cancellationToken As CancellationToken) As ValueTask(Of String)
Parameters
- message
- ChatMessage
A message that is part of the conversation history for the response being evaluated and that is to be rendered as part of the evaluation prompt.
- cancellationToken
- CancellationToken
A CancellationToken that can cancel the operation.
Returns
A string representation of the supplied message
that can be included as part of the
evaluation prompt.