052591281d
- Complete agent system with planning and execution - Bridge API with FastAPI server - WhatsApp-style mobile dashboard - Enhanced web search with query improvement - Security guards and policy checks - Comprehensive documentation
32 lines
840 B
Python
32 lines
840 B
Python
"""Bridge V1.1 — FastAPI application entry point."""
|
|
from __future__ import annotations
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
sys.path.insert(0, str(Path(__file__).parent))
|
|
|
|
print(">>> THIS IS THE REAL BACKEND <<<")
|
|
|
|
from fastapi import FastAPI
|
|
|
|
from api.chat_routes import router as chat_router
|
|
from api.controller_routes import router as ctrl_router
|
|
from api.routes import router
|
|
|
|
app = FastAPI(
|
|
title="LocalAgent Bridge - AGENT ONLY",
|
|
description="One-shot orchestration bridge - forced agent routing, no LLM fallback",
|
|
version="2.0.0",
|
|
)
|
|
|
|
# Force agent routing - only /runs endpoint available
|
|
app.include_router(router)
|
|
app.include_router(ctrl_router)
|
|
# REMOVED: chat_router - no direct LLM access allowed
|
|
|
|
|
|
if __name__ == "__main__":
|
|
import uvicorn
|
|
uvicorn.run("app:app", host="0.0.0.0", port=8000, reload=False)
|