Denkwerk
eval sample
Strata are the combinations of the values of stratify_by fields and, optionally, of a text clustering (TF-IDF over Unicode words without Snowball stop words, smooth idf ln((1+N)/(1+df))+1, L2-normalised; farthest-first initialisation (Gonzalez 1985) seeded by the SHA-256 key, then spherical k-means (Dhillon & Modha 2001) for at most 30 iterations). Allocation: proportional (largest remainder method on n*N_h/N) or equal (n/H, capped at the stratum size, surplus moved to strata with spare.
POST https://denk.halowerk.com/v1/eval-sampleInputs
| Field | Type | Required | Description |
|---|---|---|---|
| records | array | Yes | Log records (objects). |
| size | integer | Yes | Sample size n. |
| id_field | string | No | |
| stratify_by | array | No | |
| cluster | object | No | |
| allocation | string | No | |
| min_per_stratum | integer | No | |
| seed | string | No | |
| dedupe_field | string | No | Drop records whose text in this field (trimmed, lower case, whitespace collapsed) repeats an earlier record. |
| return_records | boolean | No |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"records",
"size"
],
"properties": {
"records": {
"type": "array",
"minItems": 1,
"maxItems": 20000,
"items": {
"type": "object",
"maxProperties": 64
},
"description": "Log records (objects)."
},
"size": {
"type": "integer",
"minimum": 1,
"maximum": 5000,
"description": "Sample size n."
},
"id_field": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"default": "id"
},
"stratify_by": {
"type": "array",
"maxItems": 4,
"uniqueItems": true,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 64
}
},
"cluster": {
"type": "object",
"additionalProperties": false,
"required": [
"text_field",
"k"
],
"properties": {
"text_field": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"k": {
"type": "integer",
"minimum": 2,
"maximum": 50
}
}
},
"allocation": {
"type": "string",
"enum": [
"proportional",
"equal"
],
"default": "proportional"
},
"min_per_stratum": {
"type": "integer",
"minimum": 0,
"maximum": 100,
"default": 1
},
"seed": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"default": "0"
},
"dedupe_field": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "Drop records whose text in this field (trimmed, lower case, whitespace collapsed) repeats an earlier record."
},
"return_records": {
"type": "boolean",
"default": false
}
}
}Published input example
{
"size": 2,
"stratify_by": [
"model"
],
"records": [
{
"id": "a",
"model": "x"
},
{
"id": "b",
"model": "x"
},
{
"id": "c",
"model": "y"
},
{
"id": "d",
"model": "y"
}
]
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Denkwerk0.003 USDC
agent card generate
POSThttps://denk.halowerk.com/v1/agent-card-generateBuilds an Agent2Agent protocol Agent Card with protocolVersion, name, description, url, version, capabilities, default input/output modes and skills. Skills come from the supplied list or are derived from OpenAPI operations (operationId, su
- Denkwerk0.003 USDC
agent permission diff
POSThttps://denk.halowerk.com/v1/agent-permission-diffTakes the tool names (with optional descriptions) and permission scopes of an agent before and after a change and reports added and removed tools and scopes, classifies new capabilities by risk (payments, sending messages, deleting or writi
- Denkwerk0.003 USDC
annotation guide draft
POSThttps://denk.halowerk.com/v1/annotation-guide-draftTakes example texts per label and derives, without a language model, the most distinguishing terms per label (TF-IDF contrast against the other labels), representative examples, cross-label example pairs with high similarity that need a wri