Share via


ChatCompletionAgent Class

Definition

Represent an agent that is built around the SK ChatCompletion API and leverages the API's capabilities.

public sealed class ChatCompletionAgent
type ChatCompletionAgent = class
Public NotInheritable Class ChatCompletionAgent
Inheritance
ChatCompletionAgent

Constructors

ChatCompletionAgent(Kernel, String, PromptExecutionSettings)

Initializes a new instance of the ChatCompletionAgent class.

Methods

InvokeAsync(IReadOnlyList<ChatMessageContent>, CancellationToken)

Invokes the agent to process the given messages and generate a response.

Applies to