Defines TypeScript interfaces for prediction signals, markets, and agent configuration in the Inbrain prediction system.
// Source: https://github.com/inbrainfun/inbrain | License: MIT | Copyright 2026 Inbrain Contributors
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Core types for Inbrain Prediction Intelligence Network.
*
* Four-layer agent architecture:
* Signal → Brain → Execution → Analyst
*/
export interface PredictionSignal {
id: string;
source: SignalSource;
content: string;
author?: string;
authorInfluence?: number;
timestamp: Date;
url?: string;
engagement?: EngagementMetrics;
entities: string[];
sentiment?: number; // -1 to 1
rawData?: Record<string, unknown>;
}
export type SignalSource =
| "x_twitter"
| "news"
| "onchain"
| "polymarket"
| "kalshi"
| "predictit"
| "reddit"
| "discord"
| "manual";
export interface Engagemen
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key