Skip to main content
POST
/
v2
/
evaluators
/
execute
/
tone-detection
Execute tone-detection evaluator
curl --request POST \
  --url https://api.traceloop.com/v2/evaluators/execute/tone-detection \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "text": "The capital of France is Paris."
  }
}
'
{
  "score": 0.95,
  "tone": "neutral"
}

Authorizations

Authorization
string
header
required

Type "Bearer" followed by a space and JWT token.

Body

application/json

Request body

input
object
required

Response

OK

score
number
Example:

0.95

tone
string
Example:

"neutral"