Initial travel knowledge graph release
This commit is contained in:
17
app/api/agent_settings.py
Normal file
17
app/api/agent_settings.py
Normal file
@@ -0,0 +1,17 @@
|
||||
"""Agent settings — global LLM, thresholds, and per-sub-agent config."""
|
||||
from fastapi import APIRouter
|
||||
|
||||
from app.auth import CurrentUser
|
||||
from app.db import get_agent_settings, save_agent_settings
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
@router.get("/agent-settings")
|
||||
async def _get(_user: CurrentUser = None):
|
||||
return await get_agent_settings()
|
||||
|
||||
|
||||
@router.put("/agent-settings")
|
||||
async def _save(body: dict, _user: CurrentUser):
|
||||
return await save_agent_settings(body)
|
||||
Reference in New Issue
Block a user