Rate a model answer
rate_requestScore one answer of a model called through the Runcrate inference API, by its request id (the X-Request-Id response header, or the completion id chatcmpl-). Send exactly one of thumbs ("up" or "down"), rating (1 to 5) or score (-1 to 1), with an optional label such as "helpful" or "wrong_format" and a comment. The rating shows with the request in the dashboard (Models > Observability) and can be filtered on there. Rating the same request again replaces this agent's rating. The request must be from the environment this session acts in and from the last 30 days.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"request_id": "<request_id>"
},
"name": "rate_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | A short tag, e.g. "helpful" or "wrong_format" | |
| score | No | A score from -1 (bad) to 1 (good) | |
| rating | No | A rating from 1 (bad) to 5 (good) | |
| thumbs | No | A good (up) or bad (down) answer | |
| comment | No | What was right or wrong with the answer | |
| workspace | No | Workspace ID (optional: defaults to the authenticated workspace) | |
| request_id | Yes | The X-Request-Id of the call, or its completion id (chatcmpl-...) | |
| environment | No | Environment name (optional: defaults to the environment this session acts in) |