18 lines
459 B
Python
18 lines
459 B
Python
"""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)
|