- 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.
14 lines
384 B
Python
14 lines
384 B
Python
"""投资顾问 Agent HTTP 响应(merger ok 形)。"""
|
|
from __future__ import annotations
|
|
|
|
from typing import Any
|
|
|
|
from fastapi import Request
|
|
|
|
from app.utils.response import ok
|
|
|
|
|
|
def advisor_ok(request: Request, data: Any, *, message: str = "success") -> dict[str, Any]:
|
|
trace_id = getattr(request.state, "trace_id", "unknown")
|
|
return ok(data, trace_id, message=message)
|