New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@ag-ui/langchain

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ag-ui/langchain

Implementation of the AG-UI protocol for LangChain.

latest
npmnpm
Version
0.0.1
Version published
Maintainers
2
Created
Source

@ag-ui/langchain

Implementation of the AG-UI protocol for LangChain.

Installation

npm install @ag-ui/langchain
pnpm add @ag-ui/langchain
yarn add @ag-ui/langchain

Usage

import { LangChainAgent } from "@ag-ui/langchain";

// Create an AG-UI compatible agent
const agent = new LangChainAgent({
    chainFn: async ({ messages, tools, threadId }) => {
        // Your chosen llm model
        const { ChatOpenAI } = await import("@langchain/openai");
        const chatOpenAI = new ChatOpenAI({ model: "gpt-4o" });
        const model = chatOpenAI.bindTools(tools, {
            strict: true,
        });
        return model.stream(messages, { tools, metadata: { conversation_id: threadId } });
    },
})

FAQs

Package last updated on 05 Dec 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