cohere_classify
Classify texts into custom categories by providing few-shot examples. Uses Cohere's classification model to sort inputs into defined categories.
Instructions
Classify texts into categories using Cohere Classify with few-shot examples.
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": "cohere_classify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| inputs | Yes | JSON array of strings to classify | |
| api_key | No | ||
| examples | Yes | JSON array of {text, label} few-shot examples |