v1

latestOpenAPI 3.0.02026-07-1346146138.4 KB
evaluators

Execute tone-detection evaluator

Detect the tone of the text

Request Body:

  • input.text (string, required): The text to detect the tone of
post/v2/evaluators/tone-detection/execute

Request body

Example request

{
  "input": {
    "text": "The capital of France is Paris."
  }
}

Response

OK

scorenumber
tonestring

Example response

{
  "score": 0.95,
  "tone": "neutral"
}