Freigeben über


ChatHistory.Item[Int32] Property

Definition

Gets or sets the message at the specified index in the history.

public Microsoft.SemanticKernel.ChatMessageContent this[int index] { get; set; }
member this.Item(int) : Microsoft.SemanticKernel.ChatMessageContent with get, set
Default Public Property Item(index As Integer) As ChatMessageContent

Parameters

index
Int32

The index of the message to get or set.

Property Value

The message at the specified index.

Implements

Exceptions

value is null.

The index was not valid for this history.

Applies to