🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@goat-sdk/adapter-langchain

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@goat-sdk/adapter-langchain

latest
Source
npmnpm
Version
0.2.12
Version published
Weekly downloads
247
-46.54%
Maintainers
2
Weekly downloads
 
Created
Source
GOAT

Langchain Adapter for GOAT

Integrate the more than +200 onchain tools of GOAT with Langchain.

Installation

npm install @goat-sdk/adapter-langchain
yarn add @goat-sdk/adapter-langchain
pnpm add @goat-sdk/adapter-langchain

Usage

See a full working example here.

import { getOnChainTools } from "@goat-sdk/adapter-langchain";

const tools = await getOnChainTools({
    wallet: // your wallet
    plugins: // your plugins
});

const llm = new ChatOpenAI({
    model: "gpt-4o-mini",
});

const prompt = await pull<ChatPromptTemplate>("hwchase17/structured-chat-agent");

const agent = await createStructuredChatAgent({
    llm,
    tools,
    prompt,
});

const agentExecutor = new AgentExecutor({
    agent,
    tools,
});

const response = await agentExecutor.invoke({
    input: "Your prompt here",
});


Keywords

ai

FAQs

Package last updated on 10 Mar 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