SDK·GitHub·MIT
Prediction Market Context
Fetch structured prediction-market context for any LLM
Install
npm i prediction-market-contextWhere 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
- SDK·OtherAgent World AwarenessOne-line prediction-market context injection for any AI agent
- SDK·OtherPrediction Market Uncertainty IndexOne function, one number (0-100) — real-time uncertainty from 30K+ markets
- SDK·MITSimpleFunctions CLIPrediction market infrastructure CLI — 42 commands, MCP server, REST API