Spaces:
Sleeping
Sleeping
| # app.py — CodexMesh Reflex Node API | |
| from fastapi import FastAPI | |
| from pydantic import BaseModel | |
| from agent import run_agent | |
| app = FastAPI( | |
| title="IBC Runtime — CodexMesh Reflex Node", | |
| description="Information-Judged · Belief-Modulated · Capital-Orchestrated Execution", | |
| version="1.0.0", | |
| ) | |
| class IntentRequest(BaseModel): | |
| intent: str | |
| def root(): | |
| return { | |
| "status": "CodexMesh Reflex Node Live", | |
| "node": "Node-ZA-01", | |
| "endpoints": ["/run", "/health"], | |
| "engine": "IBC Runtime · CodexByte VM", | |
| } | |
| def health(): | |
| return {"status": "ok"} | |
| def run(req: IntentRequest): | |
| return run_agent(req.intent) |