LLM-readable documentation index

Cancel Score Run

Hand off to an LLM

Cancel an in-flight score run.

Transitions the run to cancelled. Function calls already in flight are allowed to finish (best-effort cancellation via the job queue); results from completed pairs may still appear in subsequent GETs.

POST
/v3/eval/score/{scoreRunID}/cancel
x-api-key<token>

Authenticate using API Key in request header

In: header

Path Parameters

scoreRunID*string

The scoreRunID returned by POST /v3/eval/score.

Response Body

application/json

application/json

curl -X POST "https://api.bem.ai/v3/eval/score/string/cancel"
{
  "scoreRunID": "string",
  "status": "pending",
  "functionName": "string",
  "functionVersionNum": 0,
  "progress": {
    "total": 0,
    "completed": 0,
    "failed": 0
  },
  "aggregate": {
    "precision": 0.1,
    "recall": 0.1,
    "f1": 0.1,
    "matches": 0,
    "mismatches": 0,
    "missing": 0,
    "extras": 0,
    "totalFieldsExpected": 0,
    "totalFieldsActual": 0
  },
  "perPair": [
    {
      "pairIndex": 0,
      "callID": "string",
      "status": "pending",
      "fieldResults": [
        {
          "path": "string",
          "match": "match",
          "expected": null,
          "actual": null,
          "delta": 0.1,
          "similarity": 0.1
        }
      ],
      "errorMessage": "string"
    }
  ]
}
{
  "message": "string",
  "code": 0,
  "details": {}
}

See also