Partager via


AgentChat.AddChatMessages(IReadOnlyList<ChatMessageContent>) Method

Definition

Append messages to the conversation. Adding messages while an agent is active is not allowed.

public void AddChatMessages (System.Collections.Generic.IReadOnlyList<Microsoft.SemanticKernel.ChatMessageContent> messages);
member this.AddChatMessages : System.Collections.Generic.IReadOnlyList<Microsoft.SemanticKernel.ChatMessageContent> -> unit
Public Sub AddChatMessages (messages As IReadOnlyList(Of ChatMessageContent))

Parameters

messages
IReadOnlyList<ChatMessageContent>

Set of non-system messages with which to append to the conversation.

Remarks

Adding messages to the conversation requires any active AgentChannel remains synchronized, so the messages are broadcast to all channels.

Applies to