laya_classify
Classify a batch of text items against a fixed catalog of up to 20 labels, returning per-item labels with confidence scores.
Instructions
Classify many items against one shared catalog in a single forward pass (catalog <= 20 labels). Batched cost is ~2-5 ms per item, cheaper than one LLM reasoning turn for any dedupe / triage / labelling sweep. Returns the label per item with confidence.
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": {
"items": "<items>",
"catalog": "<catalog>"
},
"name": "laya_classify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| catalog | Yes | ||
| timeout_ms | No | ||
| instructions | No | Which category does each item belong to? |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |