IBC_Runtime / app.py
LordXido's picture
Update app.py
bafeb86 verified
raw
history blame contribute delete
719 Bytes
# 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)