LangChain

Wrap any LangChain tool with the safety shield in one line.

Step 1: Set up A2A TrustGate

Run the quickstart wizard — prints API key setup, MCP config, CLAUDE.md snippet, and wrapper generators:

npx a2a-trustgate quickstart

# Then run the interactive setup:
npx a2a-trustgate setup

Step 2: Install and integrate

pip install tyga-langchain

from tyga_langchain import safety_guard
from langchain_community.tools import ShellTool

safe_shell = safety_guard(ShellTool())
Help

Help

Need help? Here are some quick links: