Spaces:
Sleeping
Sleeping
File size: 719 Bytes
bafeb86 6bdba70 bafeb86 6bdba70 bafeb86 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | # 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
@app.get("/")
def root():
return {
"status": "CodexMesh Reflex Node Live",
"node": "Node-ZA-01",
"endpoints": ["/run", "/health"],
"engine": "IBC Runtime · CodexByte VM",
}
@app.get("/health")
def health():
return {"status": "ok"}
@app.post("/run")
def run(req: IntentRequest):
return run_agent(req.intent) |