feat(advisor-agent): Introduce advisor agent functionalities with compliance, KYC, and script templates
- 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.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
from pathlib import Path
|
||||
|
||||
root = Path(__file__).resolve().parents[2]
|
||||
reps = [
|
||||
("AdvisorAuthContext", "AdvisorAuthContext"),
|
||||
("ScriptTemplateRepository", "ScriptTemplateRepository"),
|
||||
(
|
||||
"from app.service.script_template_service import ScriptTemplateService",
|
||||
"from app.service.script_template_service import ScriptTemplateService",
|
||||
),
|
||||
]
|
||||
for p in list(root.glob("app/**/*.py")) + list(root.glob("scripts/**/*.py")):
|
||||
t = p.read_text(encoding="utf-8")
|
||||
o = t
|
||||
for a, b in reps:
|
||||
t = t.replace(a, b)
|
||||
if t != o:
|
||||
p.write_text(t, encoding="utf-8")
|
||||
print(p.relative_to(root))
|
||||
Reference in New Issue
Block a user