ChatHistory.Contains(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.
Determines whether a message is in the history.
public bool Contains (Microsoft.SemanticKernel.ChatMessageContent item);
abstract member Contains : Microsoft.SemanticKernel.ChatMessageContent -> bool
override this.Contains : Microsoft.SemanticKernel.ChatMessageContent -> bool
Public Function Contains (item As ChatMessageContent) As Boolean
Parameters
- item
- ChatMessageContent
The message to locate.
Returns
true if the message is found in the history; otherwise, false.
Implements
Exceptions
item
is null.