- Added new modules for advisor compliance, KYC sessions, and script templates, enhancing the advisor agent's capabilities. - Implemented a comprehensive API structure under the `/api/advisor-agent` prefix, ensuring clear organization and access to new features. - Established database models and repositories for compliance rules and KYC sessions, facilitating robust data management. - Integrated exception handling and response models to improve error management and user feedback. - Updated settings to include new configurations for compliance and KYC features, ensuring flexibility and adaptability. This update significantly expands the advisor agent's functionality, providing essential tools for compliance and customer interaction while maintaining a structured API design.
18 lines
607 B
Python
18 lines
607 B
Python
"""Allocation API skeleton."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from fastapi import APIRouter, Depends, Request
|
|
|
|
from app.api.advisor_auth_adapter import get_advisor_auth
|
|
from app.api.advisor_auth_adapter import AdvisorAuthContext
|
|
from app.api.advisor_http import advisor_ok as _advisor_ok
|
|
|
|
router = APIRouter(prefix="/api/advisor-agent/allocation", tags=["advisor-agent-allocation"])
|
|
AUTH_CONTEXT_DEP = Depends(get_advisor_auth)
|
|
|
|
|
|
@router.get("/ping")
|
|
def ping(request: Request, auth: AdvisorAuthContext = AUTH_CONTEXT_DEP):
|
|
return _advisor_ok(request, {"module": "allocation", "status": "ready"})
|