import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const benchmarkView of client.benchmarks.listPublic()) {
console.log(benchmarkView.id);
}{
"benchmarks": [
{
"id": "<string>",
"name": "<string>",
"scenarioIds": [
"<string>"
],
"metadata": {},
"status": "active",
"required_environment_variables": [
"<string>"
],
"required_secret_names": [
"<string>"
],
"is_public": true,
"attribution": "<string>",
"description": "<string>"
}
],
"has_more": true,
"total_count": 123
}List all public benchmarks matching filter.
import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const benchmarkView of client.benchmarks.listPublic()) {
console.log(benchmarkView.id);
}{
"benchmarks": [
{
"id": "<string>",
"name": "<string>",
"scenarioIds": [
"<string>"
],
"metadata": {},
"status": "active",
"required_environment_variables": [
"<string>"
],
"required_secret_names": [
"<string>"
],
"is_public": true,
"attribution": "<string>",
"description": "<string>"
}
],
"has_more": true,
"total_count": 123
}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.
The limit of items to return. Default is 20. Max is 5000.
Load the next page of data starting after the item with the given ID.
If true (default), includes total_count in the response. Set to false to skip the count query for better performance on large datasets.
Was this page helpful?