Table of Contents

Class SemanticKernelChatCompletionAgent

Namespace
AutoGen.SemanticKernel
Assembly
AutoGen.SemanticKernel.dll
public class SemanticKernelChatCompletionAgent : IAgent, IAgentMetaInformation
Inheritance
SemanticKernelChatCompletionAgent
Implements
Inherited Members
Extension Methods

Constructors

SemanticKernelChatCompletionAgent(ChatCompletionAgent)

public SemanticKernelChatCompletionAgent(ChatCompletionAgent chatCompletionAgent)

Parameters

chatCompletionAgent ChatCompletionAgent

Properties

Name

public string Name { get; }

Property Value

string

Methods

GenerateReplyAsync(IEnumerable<IMessage>, GenerateReplyOptions?, CancellationToken)

Generate reply

public Task<IMessage> GenerateReplyAsync(IEnumerable<IMessage> messages, GenerateReplyOptions? options = null, CancellationToken cancellationToken = default)

Parameters

messages IEnumerable<IMessage>

conversation history

options GenerateReplyOptions

completion option. If provided, it should override existing option if there's any

cancellationToken CancellationToken

Returns

Task<IMessage>