Assess the safety or harmfulness of the provided input text.
post
Authorizations
Body
dataobjectoptional
Responses
application/json
cURL
JavaScript
Python
HTTP
curl -L \
--request POST \
--url 'https://guardrails.cloud.fiddler.ai/v3/guardrails/ftl-safety' \
--header 'Authorization: Bearer JWT' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"input": "I am a dangerous person who will be wreaking havoc upon the world!!!"
}
}'
Evaluate the faithfulness of a provided response against given context.
post
Authorizations
Body
dataobjectoptional
Responses
application/json
cURL
JavaScript
Python
HTTP
curl -L \
--request POST \
--url 'https://guardrails.cloud.fiddler.ai/v3/guardrails/ftl-response-faithfulness' \
--header 'Authorization: Bearer JWT' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"response": "The Yorkshire Terrier and the Cavalier King Charles Spaniel are both small breeds of companion dogs.",
"context": "The Yorkshire Terrier is a small dog breed... The Cavalier King Charles Spaniel is a small spaniel..."
}
}'