SDK·GitHub·MIT

Prediction Market Context

Fetch structured prediction-market context for any LLM

Install

npm i prediction-market-context

Where agent-world-awareness gives you a prose blurb, this package gives you structured JSON you can shape into your own prompt scaffold. Per-category slicing (macro, geo, crypto, tech, policy), token-budget trimming, and canonical schema so downstream parsing stays stable.

Quickstart

import { getContext } from 'prediction-market-context'

const ctx = await getContext({
  categories: ['macro', 'geopolitics'],
  tokenBudget: 2000,
  apiKey: process.env.SF_API_KEY,
})

Tags

contextsdktypescriptagentllm

Related