HydraCore
API by router

Scoring

Score Turn

Runtime calls this after each agent response.

Auth: Bearer proxy key (instance-scoped). Rolls dice against sample_rate. If sampled, enqueues Celery scoring task.

POST
/internal/v1/scoring/turn/{instance_id}

Path Parameters

instance_idInstance Id
Formatuuid
agent_responseAgent Response
context?Context
conversation_idConversation Id
input_messageInput Message
sample_rate?Sample Rate
Default0.1
scorers?Scorers

Response Body

curl -X POST "https://loading/internal/v1/scoring/turn/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "agent_response": "string",    "conversation_id": "string",    "input_message": "string"  }'
{
  "scheduled": true,
  "task_id": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}