agentsentriopen-source LLM observabilityDashboard

guide

Manual scores

Attach numeric or categorical judgments to a trace or observation — create/upsert, list, patch, and delete with a project API key. Same rows surface on the trace detail page and feed dashboards and alerts.

How it works

Structured judgment
A named NUMERIC value or CATEGORICAL stringValue on exactly one target — a trace or an observation — with an optional comment.
Upsert by name + target
POST with the same name and target in a project overwrites value/comment and returns the existing id (200). First insert returns 201. Retries are safe.
Manual vs LLM judge
Manual API/SDK writes show a Manual badge. LLM-as-judge evals write the same score rows with an LLM judge badge. A manual overwrite sets source back to manual.
Scores vs notes
Use scores for values you aggregate and alert on. Use free-text notes for qualitative rationale without inventing categories.

Auth

Every public score route needs Authorization: Bearer sk-as-… from the project's Keys tab. Keys are project-scoped; missing or invalid keys return 401.

API

Base path /api/public/scores. Create with exactly one of traceId or observationId. Categorical scores use stringValue instead of value.

Create / upsert

curl -X POST "$AGENTSENTRI_HOST/api/public/scores" \
  -H "Authorization: Bearer $AGENTSENTRI_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "helpfulness",
    "value": 0.9,
    "comment": "clear and correct",
    "traceId": "TRACE_ID"
  }'

List

curl -H "Authorization: Bearer $AGENTSENTRI_SECRET_KEY" \
  "$AGENTSENTRI_HOST/api/public/scores?traceId=TRACE_ID"

Patch by id

curl -X PATCH "$AGENTSENTRI_HOST/api/public/scores/SCORE_ID" \
  -H "Authorization: Bearer $AGENTSENTRI_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "value": 0.75, "comment": "revised after re-read" }'

Delete with DELETE /api/public/scores/:scoreId. Pass "comment": null on PATCH to clear the comment.

UI

Open a trace: Trace scores and Observation scores show counts, type badges, Manual / LLM judge source, observation id, and updatedAt. Panels are read-only — write via API or SDK.

Python SDK

from agentsentri import AgentSentri

sentri = AgentSentri()

score = sentri.create_score(
    name="helpfulness",
    value=0.9,
    comment="clear and correct",
    trace_id="TRACE_ID",
)

listed = sentri.list_scores(trace_id="TRACE_ID")
sentri.update_score(score["score"]["id"], value=0.75)
sentri.delete_score(score["score"]["id"])

While tracing: trace.score("helpfulness", 0.9) writes the same store.

Edge cases

XOR target on createExactly one of traceId or observationId — both or neither returns 400.
List filtersProvide traceId and/or observationId. Both set → AND. Trace-only list includes observation scores on that trace.
PATCH cannot retargetChange value/name/comment by id; use POST upsert for a different name+target.
Project isolationAPI keys never read or write another project's scores.