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 that would be sent to the judge.
Discussion
Use this to see exactly what the judge model will receive for a given input/response pair.