@oaslananka/a2a-warp-adapter-langchain
v9.0.0
Published
LangChain adapter for the Agent2Agent protocol.
Maintainers
Readme
@oaslananka/a2a-warp-adapter-langchain
LangChain / LangGraph adapter for the Agent2Agent protocol.
LangChainAdapter wraps runnable-style LangChain or LangGraph pipelines and serializes the latest response into A2A artifacts.
Install
pnpm add @oaslananka/a2a-warp-adapter-langchain langchainUsage
import { LangChainAdapter, type LangChainRunnable } from '@oaslananka/a2a-warp-adapter-langchain';
import type { AnyAgentCard } from '@oaslananka/a2a-warp';
const runnable: LangChainRunnable = {
invoke: async (input) => {
/* ... */
},
};
const adapter = new LangChainAdapter(card, runnable);See Compatibility for supported ranges.
