franky-v1 / src /routers /context.py
architojha's picture
adding files
4067b64
raw
history blame contribute delete
422 Bytes
from fastapi import APIRouter
from llama_index.core.settings import Settings
# configurations
router = APIRouter()
@router.get("/")
async def read_root():
return "Script Reader Workflow for User Intent from files is up!"
@router.post("/context/")
async def extract_code_context():
try:
response = ""
return response
except Exception as e:
return {"detail": f"Error processing {e}"}