ChatClientExtensions.CompleteAsync Method

Definition

public static System.Threading.Tasks.Task<Microsoft.Extensions.AI.ChatCompletion> CompleteAsync (this Microsoft.Extensions.AI.IChatClient client, string chatMessage, Microsoft.Extensions.AI.ChatOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
static member CompleteAsync : Microsoft.Extensions.AI.IChatClient * string * Microsoft.Extensions.AI.ChatOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.AI.ChatCompletion>
<Extension()>
Public Function CompleteAsync (client As IChatClient, chatMessage As String, Optional options As ChatOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ChatCompletion)

Parameters

client
IChatClient
chatMessage
String
options
ChatOptions
cancellationToken
CancellationToken

Returns

Applies to