cURL
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 }
Count the number of characters in text
Request Body:
input.text
Type "Bearer" followed by a space and JWT token.
Request body
Show child attributes
OK
42
Was this page helpful?