ChatHistory.Insert(Int32, 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.

Inserts a message into the history at the specified index.

C#
public void Insert (int index, Microsoft.SemanticKernel.ChatMessageContent item);

Parameters

index
Int32

The index at which the item should be inserted.

item
ChatMessageContent

The message to insert.

Implements

Exceptions

item is null.

Applies to

Product Versies
Semantic Kernel Dotnet Latest