@runloop/api-client - v1.18.1
    Preparing search index...

    Object-oriented interface for working with custom Scorers.

    The Scorer class provides a high-level, object-oriented API for managing custom scorers. Scorers define bash scripts that produce a score in the range [0.0, 1.0] for scenario runs.

    import { RunloopSDK } from '@runloop/api-client-ts';

    const runloop = new RunloopSDK();
    const scorer = await runloop.scorer.create({
    type: 'my_scorer',
    bash_script: 'echo "1.0"',
    });

    const info = await scorer.getInfo();
    console.log(`Scorer type: ${info.type}`);
    Index

    Accessors

    Methods

    Accessors

    Methods

    • Fetch current scorer details from the API.

      Parameters

      • Optionaloptions: RequestOptions<unknown>

        Request options

      Returns Promise<ScorerRetrieveResponse>

      Current scorer details

      const info = await scorer.getInfo();
      console.log(`Scorer type: ${info.type}`);