ChatMessage.FromUser

ChatMessage.FromUser method

Creates a new ChatMessage object representing a user message.

public static ChatMessage FromUser(string content)
ParameterTypeDescription
contentStringThe contents of the message.

Return Value

A new ChatMessage object with the specified content and the User role.

See Also