Package dev.dokimos.server.judge
Class OpenResponsesJudge
java.lang.Object
dev.dokimos.server.judge.OpenResponsesJudge
- All Implemented Interfaces:
JudgeLM
A
JudgeLM that calls an Open Responses endpoint (POST {baseUrl}/responses) over the
JDK HTTP client, with no vendor SDK. Open Responses is a vendor-neutral, multi-provider specification
(see openresponses.org), so this judge is not tied to any single provider. The prompt is sent as one
user message item in the input array; the reply text is read from the
output_text content parts of the returned output message items (the top-level
output_text convenience field, where a provider supplies one, is preferred). A failed call
(HTTP status 400 or above, a timeout, or a network error) raises a JudgeCallException carrying
the status so the worker can decide whether to retry. The API key is held only for the lifetime of the
job and is never logged.-
Constructor Summary
Constructors -
Method Summary