Share via


ChatResponse Class

Definition

Represents the response to a chat request.

public ref class ChatResponse
public class ChatResponse
type ChatResponse = class
Public Class ChatResponse
Inheritance
ChatResponse
Derived

Constructors

ChatResponse(ChatMessage)

Initializes a new instance of the ChatResponse class.

ChatResponse(IList<ChatMessage>)

Initializes a new instance of the ChatResponse class.

Properties

AdditionalProperties

Gets or sets any additional properties associated with the chat response.

ChatThreadId

Gets or sets the chat thread ID associated with this chat response.

Choices

Gets or sets the list of chat response choices.

CreatedAt

Gets or sets a timestamp for the chat response.

FinishReason

Gets or sets the reason for the chat response.

Message

Gets the chat response message.

ModelId

Gets or sets the model ID used in the creation of the chat response.

RawRepresentation

Gets or sets the raw representation of the chat response from an underlying implementation.

ResponseId

Gets or sets the ID of the chat response.

Usage

Gets or sets usage details for the chat response.

Methods

ToChatResponseUpdates()

Creates an array of ChatResponseUpdate instances that represent this ChatResponse.

ToString()

Returns a string that represents the current object.

Applies to