Class ChatMessageResponse

ChatMessageResponse class

A chat completion message generated by the model.

public class ChatMessageResponse

Constructors

NameDescription
ChatMessageResponse()Initializes a new instance of the ChatMessageResponse class.
ChatMessageResponse(string, string)Initializes a new instance of the ChatMessageResponse class.

Properties

NameDescription
Content { get; set; }Gets or sets the contents of the message.
Id { get; set; }Gets or sets the ID of the message.
Name { get; set; }Gets or sets an optional name for the participant. Provides the model information to differentiate between participants of the same role.
Refusal { get; set; }Gets or sets the refusal message generated by the model.
Role { get; set; }Gets or sets the role of the messages author.
ToolCalls { get; set; }Gets or sets the tool calls generated by the model, such as function calls.

See Also