ChatHistory.AddUserMessage 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.
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