Modellwerk
trace grade
Takes the steps of one agent run and returns a scored report. It counts identical tool calls (same tool, same arguments) as loops, finds the longest run of consecutive failures, marks calls whose result was empty or null as wasted, and attributes cost per step and per tool so the expensive part is visible. Cost is taken from your figures when supplied, otherwise computed from token counts against the model price table.
POST https://modell.halowerk.com/v1/trace-gradeEingaben
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| steps | array | Ja | The steps of the run, in order. |
| model | string | Nein | Model id used, to price token counts when cost_usd is absent. |
| loop_threshold | integer | Nein | From how many identical calls on it counts as a loop. |
Vollständiges Eingabeschema anzeigen
{
"type": "object",
"required": [
"steps"
],
"additionalProperties": false,
"properties": {
"steps": {
"type": "array",
"minItems": 1,
"maxItems": 1000,
"description": "The steps of the run, in order.",
"items": {
"type": "object",
"additionalProperties": true,
"properties": {
"tool": {
"type": "string",
"description": "Name of the tool or step."
},
"arguments": {
"description": "The arguments used. Identical arguments on the same tool count as a loop."
},
"ok": {
"type": "boolean",
"description": "Whether the step succeeded. Defaults to true unless error is set."
},
"error": {
"type": "string",
"description": "Error text, if it failed."
},
"result": {
"description": "The result. Empty, null or an empty list counts as a wasted call."
},
"input_tokens": {
"type": "integer",
"minimum": 0
},
"output_tokens": {
"type": "integer",
"minimum": 0
},
"cost_usd": {
"type": "number",
"minimum": 0,
"description": "Cost of this step, if you already know it."
},
"duration_ms": {
"type": "integer",
"minimum": 0
}
}
}
},
"model": {
"type": "string",
"description": "Model id used, to price token counts when cost_usd is absent."
},
"loop_threshold": {
"type": "integer",
"minimum": 2,
"default": 2,
"description": "From how many identical calls on it counts as a loop."
}
}
}Veröffentlichtes Eingabebeispiel
{
"steps": [
{}
],
"loop_threshold": 2
}Ergebnis & Dokumentation
Veröffentlichtes Ergebnisschema anzeigen
{
"$ref": "https://modell.halowerk.com/v1/trace-grade/schema#/outputSchema"
}Veröffentlichtes Ergebnisbeispiel öffnen
Maschinenlesbare Dokumentation dieses Hubs
Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.
Weitere Endpunkte dieses Hubs
- Modellwerk0,003 USDC
chat completions
POSThttps://modell.halowerk.com/v1/chat-completionsRuns openai/gpt-oss-20b via GroqCloud. Messages are sent to Groq Inc., USA; payment metadata is not forwarded. At most 8 messages, 8192 UTF-8 bytes overall and 1024 completion tokens including reasoning. A length finish_reason exposes trunc
- Modellwerk0,002 USDC
context plan
POSThttps://modell.halowerk.com/v1/context-planPlans the division of a long input for a given model. It reserves room for the system prompt, the expected answer and a safety margin, then works out how many chunks are needed and where to cut, preferring paragraph boundaries over line and
- Modellwerk0,002 USDC
cost estimate
POSThttps://modell.halowerk.com/v1/cost-estimateWorks out what a call would cost. Give either the text itself or a token count, plus the expected output length, and get input, output, cache-read and cache-write cost per model with the total. Token counts derived from text are estimates f