AgentChat.AddChatMessage(ChatMessageContent) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Append a message to the conversation. Adding a message while an agent is active is not allowed.
public void AddChatMessage (Microsoft.SemanticKernel.ChatMessageContent message);
member this.AddChatMessage : Microsoft.SemanticKernel.ChatMessageContent -> unit
Public Sub AddChatMessage (message As ChatMessageContent)
Parameters
- message
- ChatMessageContent
A non-system message with which to append to the conversation.
Remarks
Adding a message to the conversation requires any active AgentChannel remains synchronized, so the message is broadcast to all channels.