v49

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

Update a custom scenario scorer.

Update a scenario scorer.

post/v1/scenarios/scorers/{id}

Path parameters

idstring required

The Scorer ID.

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.