https://github.com/spfunctions/simplefunctions-python
Calibrated world model for AI agents. Real-time probabilities from 9,706 prediction markets.
https://github.com/spfunctions/simplefunctions-python
Last synced: about 2 months ago
JSON representation
Calibrated world model for AI agents. Real-time probabilities from 9,706 prediction markets.
- Host: GitHub
- URL: https://github.com/spfunctions/simplefunctions-python
- Owner: spfunctions
- License: mit
- Created: 2026-04-02T20:57:24.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-04-06T08:57:58.000Z (about 2 months ago)
- Last Synced: 2026-04-06T11:31:28.941Z (about 2 months ago)
- Language: Python
- Size: 29.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simplefunctions-ai
Calibrated world model for AI agents. Real-time probabilities from 30,000+ prediction markets.
```bash
pip install simplefunctions-ai
```
```python
from simplefunctions import world, index, edges
state = world()
print(state['index']['uncertainty']) # 35 (0-100)
print(state['regimeSummary']) # "Risk-off: geo elevated..."
idx = index()
print(f"Uncertainty: {idx['uncertainty']}/100")
for e in edges()['edges'][:3]:
print(f"{e['title']}: {e['executableEdge']}c edge")
```
## CLI
```bash
sf-world # World state markdown
sf-index # Uncertainty index
sf-edges # Actionable edges
sf-market KXFED # Market detail
sf-delta 1h # Recent changes
```
## Client class
```python
from simplefunctions import PredictionMarketClient
client = PredictionMarketClient(api_key="sk-...")
state = client.world(format="json")
```
## License
MIT — [SimpleFunctions](https://simplefunctions.dev)