New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@everestan/protocolbanks-agent-tools

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@everestan/protocolbanks-agent-tools

Tool definitions for the Protocol Banks Agent API — adapt once to the Vercel AI SDK, LangChain, OpenAI or Anthropic

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
615
Maintainers
1
Weekly downloads
 
Created
Source

@everestan/protocolbanks-agent-tools

Tool definitions for the Protocol Banks Agent API — adapt once to the Vercel AI SDK, LangChain, OpenAI or Anthropic.

npm install @everestan/protocolbanks-sdk @everestan/protocolbanks-agent-tools
import { ProtocolBanks } from "@everestan/protocolbanks-sdk"
import { agentTools, toAnthropicTools, toOpenAIFunctions } from "@everestan/protocolbanks-agent-tools"

const pb = new ProtocolBanks({ apiKey: process.env.PB_KEY! })
const tools = agentTools(pb)
// agent_state · place_order · prepare_payment · prepare_swap · create_invoice
  • Parameters are plain JSON Schema (OpenAI and Anthropic accept them directly via toOpenAIFunctions() / toAnthropicTools(); the Vercel AI SDK accepts them through jsonSchema(); LangChain wraps them in Zod).
  • Only place_order executes. The other four return something the agent signs itself.
  • Every tool returns the API envelope and the HTTP status. A 403 (key policy) or 409 (guard) is returned, not thrown, and the descriptions tell the model not to retry.

Full adapters (AI SDK, LangChain, OpenAI, Anthropic): https://protocolbanks.com/docs/quickstart

License

GPL-3.0-only.

Keywords

ai-agents

FAQs

Package last updated on 29 Oct 2026

Related posts