ModelSubject
The subject type for language model evaluations.
Declaration
struct ModelSubject<Value> where Value : Decodable, Value : Encodable, Value : SendableMentioned in
Overview
Carries the model’s produced value and an optional structured transcript. The transcript is required for tool-call evaluation. ToolCallEvaluator performs a runtime check and throws EvaluationError.missingTranscript(evaluatorType:) if the transcript is nil.
let subject = ModelSubject(value: "Paris, France")