ModelRequest
class ModelRequest(val instructions: String, val schema: AirshipJsonSchema, val context: EvaluationContext, render: (EvaluationContext) -> String)(source)
A single request handed to an ModelAdapter: instructions, output schema, and prioritized context.
The originating evaluation owns how context is labeled and laid out — a model only renders it via prompt and, if its input window is tight, trims. The framework builds one per evaluation and hands it to ModelAdapter.respond; the constructor is public only so an app can build one to unit-test its own EvaluationObserver.
Constructors
Link copied to clipboard
constructor(instructions: String, schema: AirshipJsonSchema, context: EvaluationContext, render: (EvaluationContext) -> String)