classify
Classify (Cohere-compatible) — Drop-in Cohere v1 /classify endpoint: POST {inputs:[...up to 96 strings], examples:[{text,label},...up to 200]} and get each input's prediction, confidence and per-label confidences back in Cohere's exact response shape (classifications[].prediction/confidence/labels, meta.billed_units). Few-shot by embeddings (bge-base-en-v1.5 centroid + nearest-example cosine), no fine-tuning, no LLM call: fast and cheap for intent routing, ticket triage, spam/topic tagging. Needs at least 2 labels; 2+ examples per label recommended. Pairs with /v1/embed and /v1/rerank. Price: $0.004 USDC (Base, via x402).
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": {
"inputs": "<inputs>",
"examples": "<examples>"
},
"name": "classify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | ||
| examples | Yes |