> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/guardrails/llms.txt.
> For full documentation content, see https://docs.nvidia.com/nemo/guardrails/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/guardrails/_mcp/server.

# nemoguardrails.integrations.langchain.actions.safetools

This module contains safer versions for some of the most used LangChain tools.

The same validation logic can be applied to others as well.

## Module Contents

### Classes

| Name                                                                                                                    | Description                                       |
| ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
| [`ApifyWrapperSafe`](#nemoguardrails-integrations-langchain-actions-safetools-ApifyWrapperSafe)                         | Safer version for the ApifyWrapper.               |
| [`BingSearchAPIWrapperSafe`](#nemoguardrails-integrations-langchain-actions-safetools-BingSearchAPIWrapperSafe)         | Safer version for the BingSearch API wrapper.     |
| [`GoogleSearchAPIWrapperSafe`](#nemoguardrails-integrations-langchain-actions-safetools-GoogleSearchAPIWrapperSafe)     | Safer version for the Google Search API wrapper.  |
| [`GoogleSerperAPIWrapperSafe`](#nemoguardrails-integrations-langchain-actions-safetools-GoogleSerperAPIWrapperSafe)     | Safer version for the Google Serper API wrapper.  |
| [`OpenWeatherMapAPIWrapperSafe`](#nemoguardrails-integrations-langchain-actions-safetools-OpenWeatherMapAPIWrapperSafe) | Safer version for the OpenWeatherMap API wrapper. |
| [`SearxSearchWrapperSafe`](#nemoguardrails-integrations-langchain-actions-safetools-SearxSearchWrapperSafe)             | Safer version for the Searx Search wrapper        |
| [`SerpAPIWrapperSafe`](#nemoguardrails-integrations-langchain-actions-safetools-SerpAPIWrapperSafe)                     | Safer version for the SerpAPI wrapper.            |
| [`WikipediaAPIWrapperSafe`](#nemoguardrails-integrations-langchain-actions-safetools-WikipediaAPIWrapperSafe)           | Safer version for the Wikipedia API wrapper.      |
| [`WolframAlphaAPIWrapperSafe`](#nemoguardrails-integrations-langchain-actions-safetools-WolframAlphaAPIWrapperSafe)     | Safer version for the Wolfram Alpha API wrapper.  |
| [`ZapierNLAWrapperSafe`](#nemoguardrails-integrations-langchain-actions-safetools-ZapierNLAWrapperSafe)                 | Safer version for the Zapier NLA Wrapper.         |

### Data

[`MAX_LOCATION_LEN`](#nemoguardrails-integrations-langchain-actions-safetools-MAX_LOCATION_LEN)

[`MAX_QUERY_LEN`](#nemoguardrails-integrations-langchain-actions-safetools-MAX_QUERY_LEN)

[`log`](#nemoguardrails-integrations-langchain-actions-safetools-log)

### API

```python
class nemoguardrails.integrations.langchain.actions.safetools.ApifyWrapperSafe()
```

**Bases:** `ApifyWrapper`

Safer version for the ApifyWrapper.

```python
class nemoguardrails.integrations.langchain.actions.safetools.BingSearchAPIWrapperSafe()
```

**Bases:** `BingSearchAPIWrapper`

Safer version for the BingSearch API wrapper.

```python
class nemoguardrails.integrations.langchain.actions.safetools.GoogleSearchAPIWrapperSafe()
```

**Bases:** `GoogleSearchAPIWrapper`

Safer version for the Google Search API wrapper.

```python
class nemoguardrails.integrations.langchain.actions.safetools.GoogleSerperAPIWrapperSafe()
```

**Bases:** `GoogleSerperAPIWrapper`

Safer version for the Google Serper API wrapper.

```python
class nemoguardrails.integrations.langchain.actions.safetools.OpenWeatherMapAPIWrapperSafe()
```

**Bases:** `OpenWeatherMapAPIWrapper`

Safer version for the OpenWeatherMap API wrapper.

```python
class nemoguardrails.integrations.langchain.actions.safetools.SearxSearchWrapperSafe()
```

**Bases:** `SearxSearchWrapper`

Safer version for the Searx Search wrapper

```python
class nemoguardrails.integrations.langchain.actions.safetools.SerpAPIWrapperSafe()
```

**Bases:** `SerpAPIWrapper`

Safer version for the SerpAPI wrapper.

```python
class nemoguardrails.integrations.langchain.actions.safetools.WikipediaAPIWrapperSafe()
```

**Bases:** `WikipediaAPIWrapper`

Safer version for the Wikipedia API wrapper.

```python
class nemoguardrails.integrations.langchain.actions.safetools.WolframAlphaAPIWrapperSafe()
```

**Bases:** `WolframAlphaAPIWrapper`

Safer version for the Wolfram Alpha API wrapper.

```python
class nemoguardrails.integrations.langchain.actions.safetools.ZapierNLAWrapperSafe()
```

**Bases:** `ZapierNLAWrapper`

Safer version for the Zapier NLA Wrapper.

```python
nemoguardrails.integrations.langchain.actions.safetools.MAX_LOCATION_LEN = 50
```

```python
nemoguardrails.integrations.langchain.actions.safetools.MAX_QUERY_LEN = 50
```

```python
nemoguardrails.integrations.langchain.actions.safetools.log = logging.getLogger(__name__)
```