> ## Documentation Index
> Fetch the complete documentation index at: https://futureagi.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Is Compliant

> Evaluates whether content follows guidelines, standards, and acceptable use policies.

<Warning>
  `is_compliant` is being deprecated. Avoid using it for new integrations.
  Use `data_privacy_compliance` for new implementations.
</Warning>

<CodeGroup>
  ```python Python theme={null}

  result = evaluator.evaluate(
      eval_templates="data_privacy_compliance",
      inputs={
          "output": "Dear Sir, I hope this email finds you well. I look forward to any insights or advice you might have whenever you have a free moment"
      },
      model_name="turing_flash"
  )

  print(result.eval_results[0].output)
  print(result.eval_results[0].reason)
  ```

  ```typescript JS/TS theme={null}
  import { Evaluator, Templates } from "@future-agi/ai-evaluation";

  const evaluator = new Evaluator();

  const result = await evaluator.evaluate(
    "data_privacy_compliance",
    {
      output: "Dear Sir, I hope this email finds you well. I look forward to any insights or advice you might have whenever you have a free moment"
    },
    {
      modelName: "turing_flash",
    }
  );

  console.log(result);
  ```
</CodeGroup>

| **Input** |                    |          |                                                               |
| --------- | ------------------ | -------- | ------------------------------------------------------------- |
|           | **Required Input** | **Type** | **Description**                                               |
|           | `output`           | `string` | Generated content by the model to be evaluated for compliance |

| **Output** |            |                                                                                                          |
| ---------- | ---------- | -------------------------------------------------------------------------------------------------------- |
|            | **Field**  | **Description**                                                                                          |
|            | **Result** | Returns Passed if the content is compliant with guidelines and policies, or Failed if it's non-compliant |
|            | **Reason** | Provides a detailed explanation of the evaluation                                                        |

***

### What to do If you get Undesired Results

If the content is evaluated as non-compliant (Failed) and you want to improve it:

* Remove any potentially offensive, harmful, or discriminatory language
* Avoid content that could be interpreted as promoting illegal activities
* Ensure respectful and professional tone throughout
* Remove mentions of restricted topics based on relevant guidelines
* Avoid aggressive, threatening, or harassing language
* Eliminate content that could be interpreted as deceptive or manipulative
* Check for privacy violations or sharing of sensitive information
* Consider cultural sensitivities and avoid stereotyping

***

### Comparing Is Compliant with Similar Evals

* [**Content Safety Violation**](https://docs.futureagi.com/future-agi/get-started/evaluation/builtin-evals/content-safety-violation): Is Compliant provides a broader assessment of guideline adherence, while Content Safety Violation focuses specifically on detecting harmful, unsafe content.
* [**Is Harmful Advice**](https://docs.futureagi.com/future-agi/get-started/evaluation/builtin-evals/is-harmful-advice): Is Compliant evaluates overall policy adherence, whereas Is Harmful Advice specifically identifies potentially dangerous recommendations.
* [**Toxicity**](https://docs.futureagi.com/future-agi/get-started/evaluation/builtin-evals/toxicity): Is Compliant evaluates general policy compliance, while Toxicity specifically measures harmful or offensive language.
