Share via


ChatHistory.Contains(ChatMessageContent) Method

Definition

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.

Applies to