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

warpads

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

warpads

A plugin for integrating Warpads functionality with LangChain and CDP tools.

latest
npmnpm
Version
0.1.1
Version published
Maintainers
0
Created
Source

Warpads Langgraph Plugin

A plugin for integrating Warpads functionality with LangChain and CDP tools.

Installation

npm install warpads-langgraph-plugin

Usage

Basic Setup with CDP Tools

import { Warpads } from "warpads-langgraph-plugin";
import { CdpTool } from "@coinbase/cdp-langchain";
// Initialize Warpads with your API key
const warpads = new Warpads({
  apiKey: process.env.WARPADS_API_KEY || "",
});
// Get CDP Tools
const cdpTools = warpads.getCDPTools();
const { getAdTool, trackAdTool } = cdpTools;
// Create CDP Tool instances
// Note: agentkit should be your initialized CDP AgentKit instance
const getAdTools = new CdpTool(getAdTool, agentkit);
const trackAdTools = new CdpTool(trackAdTool, agentkit);
// Add tools to your LangChain tools array
tools.push(getAdTools);
tools.push(trackAdTools);

Environment Variables

Make sure to set the following environment variables:

For Example Reference

A Travel Agent which uses Warpads CDP Tools to get ad and post to twitter related to travel. TRAVEL AGENT

FAQs

Package last updated on 18 Feb 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