Bernstein · Schema

AgentMetrics

Aggregated performance metrics for a single (adapter, model) pair.

Artificial IntelligenceGovernanceOpen SourcePythonCLI

Properties

Name Type Description
adapter string
model string
total_tasks integer
succeeded integer
failed integer
avg_completion_secs number
total_cost_usd number
quality_gate_pass_rate number
success_rate number Fraction of tasks that succeeded (0.0-1.0).
cost_per_task number Average cost per task in USD.
View JSON Schema on GitHub

JSON Schema

bernstein-run-agent-metrics-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bernstein-run/json-schema/bernstein-run-agent-metrics-schema.json",
  "title": "AgentMetrics",
  "description": "Aggregated performance metrics for a single (adapter, model) pair.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bernstein-run-agent-comparison-api-openapi.yml#/components/schemas/AgentMetrics",
  "properties": {
    "adapter": {
      "type": "string",
      "title": "Adapter"
    },
    "model": {
      "type": "string",
      "title": "Model"
    },
    "total_tasks": {
      "type": "integer",
      "title": "Total Tasks",
      "default": 0
    },
    "succeeded": {
      "type": "integer",
      "title": "Succeeded",
      "default": 0
    },
    "failed": {
      "type": "integer",
      "title": "Failed",
      "default": 0
    },
    "avg_completion_secs": {
      "type": "number",
      "title": "Avg Completion Secs",
      "default": 0
    },
    "total_cost_usd": {
      "type": "number",
      "title": "Total Cost Usd",
      "default": 0
    },
    "quality_gate_pass_rate": {
      "type": "number",
      "title": "Quality Gate Pass Rate",
      "default": 1
    },
    "success_rate": {
      "type": "number",
      "title": "Success Rate",
      "description": "Fraction of tasks that succeeded (0.0-1.0).",
      "readOnly": true
    },
    "cost_per_task": {
      "type": "number",
      "title": "Cost Per Task",
      "description": "Average cost per task in USD.",
      "readOnly": true
    }
  },
  "type": "object",
  "required": [
    "adapter",
    "model",
    "success_rate",
    "cost_per_task"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/bernstein-run-agent-metrics"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.