Call the Azure AI Content Safety protected-material detector.
Usage
foundry_protected_material(
text,
endpoint = NULL,
api_key = NULL,
api_version = "2024-09-01"
)Examples
if (interactive() &&
nzchar(Sys.getenv("AZURE_CONTENT_SAFETY_ENDPOINT")) &&
nzchar(Sys.getenv("AZURE_CONTENT_SAFETY_KEY"))) {
foundry_protected_material("A short text sample.")
}