LLMResult

@Serializable
data class LLMResult(val summary: String = "", val value: Double? = null, val label: String? = null, val confidence: Double? = null, val detail: String = "")(source)

Default JSON output contract for a Server.LLM node configured with ResponseFormat.JSON.

Observer nodes (e.g. a DataPoint child) can decode snapshot.value into this class and read value / label / confidence without knowing the upstream prompt. The JSON_SCHEMA constant is the default value for LLMMetaData.responseInstructions so the server can embed it in the system prompt automatically.

Constructors

Link copied to clipboard
constructor(summary: String = "", value: Double? = null, label: String? = null, confidence: Double? = null, detail: String = "")

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Model's self-reported confidence in 0, 1, or null if not applicable.

Link copied to clipboard

Extended explanation or reasoning; empty string when not needed.

Link copied to clipboard

Short label classifying the result (e.g. "HIGH", "normal").

Link copied to clipboard

One-sentence human-readable summary of the result.

Link copied to clipboard

Primary numeric result, or null when the answer is non-numeric.