🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@sidclaw/langchain-governance

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sidclaw/langchain-governance

SidClaw governance integration for LangChain.js — policy evaluation, human approval, and audit trails

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

@sidclaw/langchain-governance

npm version License: Apache-2.0

SidClaw governance integration for LangChain.js — policy evaluation, human approval, and audit trails for AI agent tools.

What it does

Wraps your LangChain.js tools with governance. Before any tool executes:

  • Allowed actions run immediately
  • High-risk actions require human approval
  • Prohibited actions are blocked before execution
  • Every decision is logged with a tamper-proof audit trail

Installation

npm install @sidclaw/langchain-governance @langchain/core

Quick Start

import { governTools } from '@sidclaw/langchain-governance';
import { AgentIdentityClient } from '@sidclaw/sdk';

const client = new AgentIdentityClient({
  apiKey: 'ai_...',
  apiUrl: 'https://api.sidclaw.com',
  agentId: 'your-agent-id',
});

// Wrap your existing tools — no changes to tool code
const governed = governTools(myTools, { client, data_classification: 'confidential' });

Option 2: Monitor only (audit without blocking)

import { GovernanceCallbackHandler } from '@sidclaw/langchain-governance';

const handler = new GovernanceCallbackHandler(client);
// Pass as callback — every tool call is logged, nothing is blocked

Keywords

langchain

FAQs

Package last updated on 23 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts