PrompticPromptic

List evaluations for a component

Evaluations are scoped by `subject` (what the judge looks at: output / trajectory / annotation) and anchored to a durable resource by `targetType` (trace / run / dataset). The anchor IDs follow the target type: `trace` evaluations populate only `traceDbId`; `dataset` evaluations populate only `datasetId`; `run` evaluations populate both `runId` and `datasetId` (since a run belongs to a dataset).

GET
/components/{componentId}/evaluations

Evaluations are scoped by subject (what the judge looks at: output / trajectory / annotation) and anchored to a durable resource by targetType (trace / run / dataset). The anchor IDs follow the target type: trace evaluations populate only traceDbId; dataset evaluations populate only datasetId; run evaluations populate both runId and datasetId (since a run belongs to a dataset).

Authorization

BearerApiKey
AuthorizationBearer <token>

API key from AI Application settings

In: header

Path Parameters

componentId*string
Formatuuid

Response Body

application/json

application/json

curl -X GET "https://loading/api/v1/components/497f6eca-6276-4993-bfeb-53cbbbba6f08/evaluations"
{
  "data": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "name": "string",
      "aiComponentId": "5019a7c9-87f7-404d-b382-86b29517165e",
      "status": "string",
      "subject": "output",
      "targetType": "trace",
      "datasetId": "6586f21b-ad4d-4d06-a309-712af47184a2",
      "runId": "78c33d18-170c-44d3-a227-b3194f134f73",
      "traceDbId": "bcc7281d-b925-42a7-8484-03f5a7b15e9f",
      "budget": {
        "property1": null,
        "property2": null
      },
      "results": {
        "property1": null,
        "property2": null
      },
      "errorMessage": "string",
      "startedAt": "string",
      "completedAt": "string",
      "createdAt": "string",
      "updatedAt": "string"
    }
  ]
}
{
  "error": "string"
}