Docs / Integrations / Adapters

LangChain Adapter

Translate LangChain tool/step requests into normalized governor actions, then gate centrally.

What it does

Translate LangChain tool/step requests into normalized governor actions, then gate centrally.

How it works

1. Validate intent

Adapter checks structure only (required fields, types, unknown fields). It does not run policy logic.

2. Normalize action

Intent is mapped to a generic NormalizedAction with action type DATA_ACCESS / CONFIG_CHANGE.

3. Evaluate policy

Governor evaluates centrally with fail-closed semantics. Any uncertainty returns deny.

4. Build plan + execute

Execution plan is descriptive. Default path is dry-run and returns planned external calls.

5. Emit evidence

Decision output includes deterministic evidence packet and stable evidence hash.

Why this is useful

Removes adapter-specific policy drift by centralizing decisions.
Creates one audit and evidence model across all integrations.
Supports safe rollout with dry-run first and explicit approval paths.
Improves incident response because every decision has a deterministic hash.

Use it for

Prevent uncontrolled tool execution in agent chains

Tier: Tier 2 · AI Agent Frameworks
Adapter ID: langchain
Action family: DATA_ACCESS / CONFIG_CHANGE

Example intent

{
  "action": "tool_call_request",
  "tool": "crm_lookup",
  "tool_category": "data_access",
  "args": {
    "customer_id": "cust_42"
  },
  "requested_by": "agent-langchain"
}

Where to monitor