Skip to main content
POST
/
v2
/
evaluators
/
execute
/
sexism-detector
Execute sexism-detector evaluator
curl --request POST \
  --url https://api.traceloop.com/v2/evaluators/execute/sexism-detector \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "text": "All team members should be treated equally regardless of gender."
  },
  "config": {
    "threshold": 0.5
  }
}
'
{
  "is_safe": "safe"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Request body

input
object
required
config
object

Response

OK

is_safe
string
Example:

"safe"