Skip to content

About

Predge tools for agent frameworks: Vercel AI SDK, LangChain.js. Signed Polymarket settlement-risk checks and x402-paid data.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Predge agent tools

Framework adapters for the Predge API. They give an agent a signed settlement-risk check for any Polymarket market (free, no key), offline verification of Predge records, and x402-paid Polymarket data.

Package Framework
@predge/ai-sdk Vercel AI SDK
@predge/langchain LangChain.js / LangGraph.js

Other integrations:

Get a free key

Free pilot key in a minute: https://predge.io/start (no card)

First call: a signed delivery verdict for a paid agent call.

export PREDGE_KEY=pdg_pilot_...   # from predge.io/start
curl -s https://api.predge.io/v1/verdicts \
  -H 'content-type: application/json' \
  -H "x-predge-key: $PREDGE_KEY" \
  -d '{"job":{"endpoint":"https://api.example.com/v1/report","expected_content_type":"application/json","required_fields":["rows"]},
       "delivery":{"status":200,"headers":{"content-type":"application/json"},"body":"{\"rows\":[1]}"},
       "payment":{"amount_usd":0.25,"payer":"0xBuyer","payee":"0xMerchant"}}'

The response carries verdict (delivered / not_delivered / inconclusive), reason_codes, an ed25519 attestation and a verify_url. Docs: predge.io/docs#verdicts.

No key? Pay per call over x402 instead: the same request without x-predge-key answers 402 with the price ($0.05), payable in USDC by any x402 client.

Development

npm install
npm run typecheck
npm test
npm run build

The shared client in shared/ (canonical JSON, ed25519 verification, x402 payment) is bundled into each package, so there is no runtime dependency between them.

MIT

About

Predge tools for agent frameworks: Vercel AI SDK, LangChain.js. Signed Polymarket settlement-risk checks and x402-paid data.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages