AI Middleware for Prediction Markets