Class SemanticKernelAgent
- Namespace
- Auto
Gen .SemanticKernel
- Assembly
- AutoGen.SemanticKernel.dll
Semantic Kernel Agent
- IMessage<T> where T is Microsoft.
Semantic Kernel. Chat Message Content
- IMessage<T> where T is Microsoft.
Semantic Kernel. Chat Message Content - (streaming) IMessage<T> where T is Microsoft.
Semantic Kernel. Streaming Chat Message Content
To support more AutoGen built-in IMessage, register with Semantic
- Inheritance
-
Semantic
Kernel Agent
- Implements
- Inherited Members
- Extension Methods
Constructors
SemanticKernelAgent(Kernel, string, string, PromptExecutionSettings?)
public SemanticKernelAgent(Kernel kernel, string name, string systemMessage = "You are a helpful AI assistant", PromptExecutionSettings? settings = null)
Parameters
Properties
Name
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
GenerateReply Options completion option. If provided, it should override existing option if there's any
cancellationToken
CancellationToken
Returns
GenerateStreamingReplyAsync(IEnumerable<IMessage>, GenerateReplyOptions?, CancellationToken)
public IAsyncEnumerable<IMessage> GenerateStreamingReplyAsync(IEnumerable<IMessage> messages, GenerateReplyOptions? options = null, CancellationToken cancellationToken = default)
Parameters
messages
IEnumerable<IMessage>options
GenerateReply Options cancellationToken
CancellationToken