score#
- async PDDecodeServer.score(request: ScoreRequest, raw_request_info: RawRequestInfo | None = None) AsyncGenerator[ScoreResponse | ErrorResponse, None]#
Runs a score request to the engine and returns the response.
Returns an AsyncGenerator over the ScoreResponse object. This is so that the caller can have a consistent interface across all the methods of chat, completions, embeddings, and score.
- Parameters:
request (ScoreRequest) – A ScoreRequest object.
raw_request_info (RawRequestInfo | None) – Optional RawRequestInfo containing data from the original HTTP request.
- Returns:
An AsyncGenerator over the ScoreResponse object.
- Return type:
AsyncGenerator[ScoreResponse | ErrorResponse, None]