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

# Check And Redact • Rust AI Agent SDK

> check_and_redact: Check and redact content.

# check\_and\_redact

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**PolicyEngine**](../classes/PolicyEngine) class in the [**policy**](../modules/policy) module.

Check and redact content.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def check_and_redact(&self, content: &str) -> (PolicyResult, String)
```

## Parameters

<ParamField query="content" type="&str" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="(PolicyResult, String)">
  The result of the operation.
</ResponseField>
