Table of Contents

Class ChatInferenceResult

Represents the response of a chat request.

public record ChatInferenceResult
Inheritance
object
ChatInferenceResult

Constructors

ChatInferenceResult(Message[], Usage)

public ChatInferenceResult(Message[] messages, Usage usage)

Parameters

messages Message[]

The generated content.

usage Usage

The total token usage of the inference request.

Fields

Messages

The generated content.

public readonly Message[] Messages

Field Value

Message[]

Usage

The total token usage of the inference request.

public readonly Usage Usage

Field Value

Usage

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.