ChatMessage.FromAssistant

ChatMessage.FromAssistant method

Creates a new ChatMessage object representing an assistant message.

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

Return Value

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

See Also