Contents

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 -> Prompt

Parameters

  • 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.

See Also

Configuring the judge prompt