GenerationResult

data class GenerationResult(val text: String, val tokens: IntArray, val stopReason: StopReason)(source)

The outcome of LlamaEngine.generateText.

Constructors

Link copied to clipboard
constructor(text: String, tokens: IntArray, stopReason: StopReason)

Properties

Link copied to clipboard

why generation stopped.

Link copied to clipboard

the generated text (complete UTF-8 characters only).

Link copied to clipboard

ids of the generated tokens, in order.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Results are equal when their text, tokens (by content) and stopReason are equal.

Link copied to clipboard
open override fun hashCode(): Int

Hash of text, tokens (by content) and stopReason, consistent with equals.