Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ The SDK provides object-oriented interfaces for all major Runloop resources:
- **[`runloop.storageObject`](https://runloopai.github.io/api-client-ts/stable/classes/StorageObjectOps.html)** - Storage object management (upload, download, list objects)
- **[`runloop.agent`](https://runloopai.github.io/api-client-ts/stable/classes/AgentOps.html)** - Agent management (create, list agents from npm/pip/git)
- **[`runloop.scenario`](https://runloopai.github.io/api-client-ts/stable/classes/ScenarioOps.html)** - Scenario management (list scenarios, start runs)
- **[`runloop.scorer`](https://runloopai.github.io/api-client-ts/stable/classes/ScorerOps.html)** - Scorer management (create, list, validate, update)
- **[`runloop.scorer`](https://runloopai.github.io/api-client-ts/stable/classes/ScorerOps.html)** - Scorer management (create, list, update)
- **[`runloop.api`](https://runloopai.github.io/api-client-ts/stable/classes/Runloop.html)** - Direct access to the REST API client

## TypeScript Support
Expand All @@ -88,7 +88,7 @@ const devbox = await blueprint.createDevbox({ name: 'my-devbox' });

### Scorers

Scorers are custom scoring functions used to evaluate scenario outputs. Create scorers via `runloop.scorer.create()`, then update or validate them with the returned `Scorer` instance:
Scorers are custom scoring functions used to evaluate scenario outputs. Create scorers via `runloop.scorer.create()`, then update them with the returned `Scorer` instance:

```typescript
import { RunloopSDK } from '@runloop/api-client';
Expand All @@ -101,8 +101,6 @@ const scorer = await runloop.scorer.create({
});

await scorer.update({ bash_script: 'echo "0.5"' });
const result = await scorer.validate({ scoring_context: { output: 'hello' } });
console.log(result.scoring_result.score);
```

### Scenarios
Expand Down
4 changes: 0 additions & 4 deletions src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1332,10 +1332,6 @@ export class AgentOps {
*
* // Update the scorer
* await scorer.update({ bash_script: 'echo "0.5"' });
*
* // Validate the scorer with a scoring context
* const result = await scorer.validate({ scoring_context: { output: 'hello' } });
* console.log(result.scoring_result.score);
* ```
*
* @example
Expand Down
Loading