Semantic Kernel JavaScript
    Preparing search index...

    Class ChatResponse

    Represents the result of a chat completion request.

    Index

    Constructors

    Properties

    additionalProperties?: AdditionalProperties<unknown>

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

    choices: ChatMessage[]
    completionId?: string

    Gets or sets the ID of the chat completion.

    createdAt?: number

    Gets or sets a timestamp for the chat completion.

    finishReason?: ChatFinishReason

    Gets or sets the reason for the chat completion.

    modelId?: string

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

    rawRepresentation?: unknown

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

    usage?: UsageDetails

    Gets or sets usage details for the chat completion.

    Accessors

    • get text(): string

      Returns string

    Methods

    • Returns string