nemoguardrails.integrations.langchain.actions.safetools

View as Markdown

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

NameDescription
ApifyWrapperSafeSafer version for the ApifyWrapper.
BingSearchAPIWrapperSafeSafer version for the BingSearch API wrapper.
GoogleSearchAPIWrapperSafeSafer version for the Google Search API wrapper.
GoogleSerperAPIWrapperSafeSafer version for the Google Serper API wrapper.
OpenWeatherMapAPIWrapperSafeSafer version for the OpenWeatherMap API wrapper.
SearxSearchWrapperSafeSafer version for the Searx Search wrapper
SerpAPIWrapperSafeSafer version for the SerpAPI wrapper.
WikipediaAPIWrapperSafeSafer version for the Wikipedia API wrapper.
WolframAlphaAPIWrapperSafeSafer version for the Wolfram Alpha API wrapper.
ZapierNLAWrapperSafeSafer version for the Zapier NLA Wrapper.

Data

MAX_LOCATION_LEN

MAX_QUERY_LEN

log

API

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

Bases: ApifyWrapper

Safer version for the ApifyWrapper.

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

Bases: BingSearchAPIWrapper

Safer version for the BingSearch API wrapper.

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

Bases: GoogleSearchAPIWrapper

Safer version for the Google Search API wrapper.

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

Bases: GoogleSerperAPIWrapper

Safer version for the Google Serper API wrapper.

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

Bases: OpenWeatherMapAPIWrapper

Safer version for the OpenWeatherMap API wrapper.

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

Bases: SearxSearchWrapper

Safer version for the Searx Search wrapper

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

Bases: SerpAPIWrapper

Safer version for the SerpAPI wrapper.

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

Bases: WikipediaAPIWrapper

Safer version for the Wikipedia API wrapper.

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

Bases: WolframAlphaAPIWrapper

Safer version for the Wolfram Alpha API wrapper.

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

Bases: ZapierNLAWrapper

Safer version for the Zapier NLA Wrapper.

nemoguardrails.integrations.langchain.actions.safetools.MAX_LOCATION_LEN = 50
nemoguardrails.integrations.langchain.actions.safetools.MAX_QUERY_LEN = 50
nemoguardrails.integrations.langchain.actions.safetools.log = logging.getLogger(__name__)