ChatHistory.Item[Int32] Property
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.
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.