Sign In

@sapiom/langchain

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sapiom/langchain

LangChain integration for Sapiom SDK

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
84
223.08%
Maintainers
1
Weekly downloads
 
Created
Source

@sapiom/langchain

npm version License: MIT

⚠️ Beta Status: Currently in v0.x. API may change before v1.0.0. Production-ready and actively maintained.

LangChain integration for Sapiom SDK providing automatic cost tracking and session management for LangChain agents, tools, and models.

Version Compatibility

Package VersionLangChain VersionStatus
v0.xv0.3+✅ Active
v1.0v1.0+🚧 Planned

This package currently supports LangChain v0.x. LangChain v1.x support coming in SDK v1.0.

Installation

npm install @sapiom/langchain

Quick Start

import { SapiomChatOpenAI } from '@sapiom/langchain';

const model = new SapiomChatOpenAI({
  apiKey: process.env.OPENAI_API_KEY,
  sapiomApiKey: process.env.SAPIOM_API_KEY,
  model: 'gpt-4'
});

const response = await model.invoke('Hello!');

See full README for complete documentation.

License

MIT © Sapiom

Keywords

sapiom

FAQs

Package last updated on 12 Nov 2025

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