ChatHistory.AddRange(IEnumerable<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.

Adds the messages to the history.

C#
public void AddRange (System.Collections.Generic.IEnumerable<Microsoft.SemanticKernel.ChatMessageContent> items);

Parameters

items
IEnumerable<ChatMessageContent>

The collection whose messages should be added to the history.

Exceptions

items is null.

Applies to

Product Versions
Semantic Kernel Dotnet Latest