v49

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01151216390.1 KB
Scenario
ScenarioScorer

Create a custom scenario scorer.

Create a custom scenario scorer.

post/v1/scenarios/scorers

Request body

typestring required

Name of the type of custom scorer.

bash_scriptstring required

Bash script for the custom scorer taking context as a json object $RL_SCORER_CONTEXT.

Response

OK

idstring required

ID for the scenario scorer.

typestring required

Name of the type of scenario scorer.

bash_scriptstring required

Bash script that takes in $RL_SCORER_CONTEXT as env variable and runs scoring.