judgePrompt(for:output:)
Builds and returns the full judge prompt for inspection, debugging, or logging.
Declaration
nonisolated(nonsending) func judgePrompt(for sample: Input, output: Input.ExpectedValue) async throws -> PromptParameters
- sample:
The evaluation sample.
- output:
The model’s response content.
Return Value
The fully assembled Prompt to send to the model judge.
Discussion
Use this to inspect exactly what the model judge receives for a given input and response pair.