EvaluationContext

data class EvaluationContext @JvmOverloads constructor(val items: List<EvaluationContext.Item> = emptyList())(source)

App-supplied context for a model evaluation, as an ordered list of prioritized items.

Context goes to the model that runs the evaluation and nowhere else — Airship never receives, stores, or reports it. An on-device model keeps it on the device; a model you configure sends it wherever that model runs.

Parameters

items

Context pieces in presentation order.

Constructors

Link copied to clipboard
constructor(items: List<EvaluationContext.Item> = emptyList())

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Item @JvmOverloads constructor(val content: String, val priority: Double = 0.0)

A single piece of context.

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Returns a copy with other's items appended after this context's.

Link copied to clipboard

Renders the items as a - item bullet list in order, skipping empty content.