Create a new custom scorer.
Parameters for creating the scorer
Optionaloptions: RequestOptions<unknown>Request options
A Scorer instance
Get a scorer object by its ID.
The ID of the scorer
A Scorer instance
List scorers with optional filters (paginated).
Optionalparams: ScorerListParamsOptional filter parameters
Optionaloptions: RequestOptions<unknown>Request options
An array of Scorer instances
Scorer SDK interface for managing custom scorers.
Remarks
Overview
Scorers are custom scoring functions used to evaluate scenario outputs. A scorer is a script that runs and prints a score in the range [0.0, 1.0], e.g.
echo "0.5".Usage
This interface is accessed via RunloopSDK.scorer. Create scorers with ScorerOps.create or reference an existing scorer by ID with ScorerOps.fromId to obtain a Scorer instance.
Example
Example
Get scorer info (typical usage):