Contents

ModelSubject

The subject type for language model evaluations.

Declaration

struct ModelSubject<Value> where Value : Decodable, Value : Encodable, Value : Sendable

Mentioned 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")

Topics

Creating a subject

Accessing the content

Inspecting tool calls

See Also

Testing an intelligent feature