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,
  "matchConfig": {
    "numericTolerance": 0.1,
    "stringMatch": "exact",
    "fuzzyThreshold": 0.1,
    "arrayMatch": "by-index",
    "ignorePaths": [
      "string"
    ]
  },
  "progress": {
    "total": 0,
    "completed": 0,
    "failed": 0
  },
  "aggregate": {
    "precision": 0.1,
    "recall": 0.1,
    "f1": 0.1,
    "exactMatches": 0,
    "withinTolerance": 0,
    "fuzzyMatches": 0,
    "misses": 0,
    "extras": 0,
    "totalFieldsExpected": 0,
    "totalFieldsActual": 0
  },
  "perPair": [
    {
      "pairIndex": 0,
      "callID": "string",
      "status": "pending",
      "fieldResults": [
        {
          "path": "string",
          "match": "exact",
          "expected": null,
          "actual": null,
          "delta": 0.1
        }
      ],
      "errorMessage": "string"
    }
  ]
}
{
  "message": "string",
  "code": 0,
  "details": {}
}

See also