Share via


ChatHistory.AddUserMessage Method

Definition

Overloads

AddUserMessage(ChatMessageContentItemCollection)

Add a user message to the chat history

AddUserMessage(String)

Add a user message to the chat history

AddUserMessage(ChatMessageContentItemCollection)

Add a user message to the chat history

public void AddUserMessage (Microsoft.SemanticKernel.ChatCompletion.ChatMessageContentItemCollection contentItems);
member this.AddUserMessage : Microsoft.SemanticKernel.ChatCompletion.ChatMessageContentItemCollection -> unit
Public Sub AddUserMessage (contentItems As ChatMessageContentItemCollection)

Parameters

contentItems
ChatMessageContentItemCollection

Instance of ChatMessageContentItemCollection with content items

Applies to

AddUserMessage(String)

Add a user message to the chat history

public void AddUserMessage (string content);
member this.AddUserMessage : string -> unit
Public Sub AddUserMessage (content As String)

Parameters

content
String

Message content

Applies to