@everestan/protocolbanks-agent-tools
v0.2.0
Published
Tool definitions for the Protocol Banks Agent API — adapt once to the Vercel AI SDK, LangChain, OpenAI or Anthropic
Maintainers
Readme
@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-toolsimport { 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 throughjsonSchema(); LangChain wraps them in Zod). - Only
place_orderexecutes. The other four return something the agent signs itself. - Every tool returns the API envelope and the HTTP status. A
403(key policy) or409(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.
