Scenario
ScenarioScorer

Create a custom scenario scorer.

Create a custom scenario scorer.

post/v1/scenarios/scorers

Request

  • Base URL: https://api.runloop.ai
  • URL: https://api.runloop.ai/v1/scenarios/scorers
  • Auth: HTTP bearer

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.

Changes

No recorded changes to this operation across all 50 revisions of this API.