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.
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.