import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const scorer = await client.scenarios.scorers.create({ bash_script: 'bash_script', type: 'type' });
console.log(scorer.id);{
"id": "<string>",
"type": "<string>",
"bash_script": "<string>"
}Create a custom scenario scorer.
import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const scorer = await client.scenarios.scorers.create({ bash_script: 'bash_script', type: 'type' });
console.log(scorer.id);{
"id": "<string>",
"type": "<string>",
"bash_script": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.runloop.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Was this page helpful?