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
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
GenerateReplyOptionscompletion option. If provided, it should override existing option if there's any
cancellationToken
CancellationToken