npm.io
1.0.1 • Published 21h ago

@moldea.ai/adapter-langchain

Licence
MIT
Version
1.0.1
Deps
0
Vulns
0
Weekly
0

@moldea.ai/adapter-langchain

Deterministic runtime evidence and diagnostics for LangChain 1.5.x TypeScript createAgent applications declared by moldea agents.

Installation

pnpm add @moldea.ai/adapter-langchain @moldea.ai/core @moldea.ai/repository

The package exports one immutable adapter:

import { langChainAdapter } from '@moldea.ai/adapter-langchain';
import { createCore } from '@moldea.ai/core';

const core = createCore({ adapters: [langChainAdapter] });

Verified target

Version 1.0.1 supports Repository Format 1, langchain >=1.5.9 <1.6.0, and companion @langchain/core >=1.2.8 <1.3.0. The experimental target recognizes:

  • directly exported package-root createAgent(...) definitions
  • direct instruction-loader calls and SystemMessage construction
  • direct, toolStrategy(...), and providerStrategy(...) output-schema relationships
  • normal two-argument tool(implementation, fields) declarations
  • closed inline, module-local, and relative-imported tool arrays

The adapter reads source through the Repository contract. It does not execute LangChain, import inspected modules, inspect lockfiles or installed packages, contact LangSmith or model providers, or write to the repository.

Public API

The package exports only langChainAdapter. It has no default export, configuration factory, LangChain or LangGraph facade, parser export, or public diagnostic registry.

Documentation