# ModelArmorSanitizePromptRunnable

> **Class** in `langchain_google_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-google-community/model_armor/runnable/ModelArmorSanitizePromptRunnable)

`Runnable` to sanitize user prompts using Model Armor.

## Signature

```python
ModelArmorSanitizePromptRunnable(
    self,
    project: Optional[str] = None,
    location: Optional[str] = _DEFAULT_LOCATION,
    credentials: Optional[google_auth_credentials.Credentials] = None,
    transport: Optional[str] = None,
    client_options: Optional[Any] = None,
    client_info: Optional[Any] = None,
    template_id: Optional[str] = None,
    fail_open: bool = False,
    **kwargs: Any = {},
)
```

## Extends

- `ModelArmorSanitizeBaseRunnable`

## Methods

- [`invoke()`](https://reference.langchain.com/python/langchain-google-community/model_armor/runnable/ModelArmorSanitizePromptRunnable/invoke)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-google/blob/a3f016b2a6c4af535df275545f76fa7424aa39e5/libs/community/langchain_google_community/model_armor/runnable.py#L55)