Skip to main content
POST
/
v2
/
evaluators
/
execute
/
char-count
Execute char-count evaluator
curl --request POST \
  --url https://api.traceloop.com/v2/evaluators/execute/char-count \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "text": "Hello, world! This is a sample text."
  }
}
'
{
  "char_count": 42
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Request body

input
object
required

Response

OK

char_count
integer
Example:

42