Partager via


ChatHistory.Insert(Int32, ChatMessageContent) Method

Definition

Inserts a message into the history at the specified index.

public void Insert (int index, Microsoft.SemanticKernel.ChatMessageContent item);
abstract member Insert : int * Microsoft.SemanticKernel.ChatMessageContent -> unit
override this.Insert : int * Microsoft.SemanticKernel.ChatMessageContent -> unit
Public Sub Insert (index As Integer, item As ChatMessageContent)

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