feat(platform): close AI expense value loop
Add tenant-safe value, telemetry, connector, commercial, and production-readiness foundations.
This commit is contained in:
@@ -4,6 +4,11 @@ from app.models.agent_asset import (
|
||||
AgentAssetRuleFeedback,
|
||||
AgentAssetVersion,
|
||||
)
|
||||
from app.models.agent_asset_release_telemetry import (
|
||||
AgentAssetReleaseAuditSample,
|
||||
AgentAssetReleaseLabel,
|
||||
AgentAssetReleaseObservation,
|
||||
)
|
||||
from app.models.agent_conversation import AgentConversation, AgentConversationMessage
|
||||
from app.models.agent_feedback import AgentOperationFeedback
|
||||
from app.models.agent_run import AgentRun, AgentToolCall, AgentTraceEvent, SemanticParseLog
|
||||
@@ -17,11 +22,28 @@ from app.models.attachment_association_job import AttachmentAssociationJob
|
||||
from app.models.audit_log import AuditLog
|
||||
from app.models.auth_session import AuthSession
|
||||
from app.models.budget import BudgetAllocation, BudgetReservation, BudgetTransaction
|
||||
from app.models.commercial import (
|
||||
CommercialCostEvent,
|
||||
CommercialEntitlement,
|
||||
TenantCommercialPlan,
|
||||
TenantSubscription,
|
||||
UsageMeterEvent,
|
||||
)
|
||||
from app.models.commercial_billing import CommercialAdminEvent, CommercialBillingPeriod
|
||||
from app.models.commercial_runtime import CommercialRuntimeReservation
|
||||
from app.models.employee import Employee
|
||||
from app.models.employee_behavior_profile import EmployeeBehaviorProfileSnapshot
|
||||
from app.models.employee_change_log import EmployeeChangeLog
|
||||
from app.models.expense_case import BusinessEvent, ExpenseCase, ExpenseCaseLink
|
||||
from app.models.few_shot_sample import FewShotSample
|
||||
from app.models.financial_connector import (
|
||||
FinancialConnectorConfig,
|
||||
FinancialConnectorConfigEvent,
|
||||
FinancialConnectorEvent,
|
||||
FinancialConnectorOperationalEvent,
|
||||
PaymentReconciliationCase,
|
||||
PaymentReconciliationEvent,
|
||||
)
|
||||
from app.models.financial_record import (
|
||||
AccountsPayableRecord,
|
||||
AccountsReceivableRecord,
|
||||
@@ -31,15 +53,28 @@ from app.models.financial_record import (
|
||||
from app.models.golden_case import GoldenCase
|
||||
from app.models.hermes_config import HermesTaskConfig, HermesTaskExecutionLog
|
||||
from app.models.hermes_report import HermesRiskReport
|
||||
from app.models.knowledge_security import KnowledgeOnlyOfficeSession
|
||||
from app.models.notification_state import NotificationState
|
||||
from app.models.organization import OrganizationUnit
|
||||
from app.models.reimbursement import ReimbursementRequest
|
||||
from app.models.risk_disposition import RiskDisposition, RiskDispositionEvent
|
||||
from app.models.risk_observation import RiskObservation, RiskObservationFeedback
|
||||
from app.models.role import Role
|
||||
from app.models.savings import (
|
||||
ProfileBaselineSnapshot,
|
||||
SavingsEvent,
|
||||
SavingsEvidenceLink,
|
||||
SavingsOpportunity,
|
||||
SavingsRealization,
|
||||
)
|
||||
from app.models.system_model_setting import SystemModelSetting
|
||||
from app.models.system_setting import SystemSetting
|
||||
from app.models.system_setting_secret import SystemSettingSecret
|
||||
from app.models.tenant import Tenant, TenantMembership
|
||||
from app.models.tenant_finance_report import (
|
||||
TenantFinanceReportConfig,
|
||||
TenantFinanceReportRun,
|
||||
)
|
||||
from app.models.user_session_metric import UserSessionMetric
|
||||
|
||||
__all__ = [
|
||||
@@ -51,6 +86,9 @@ __all__ = [
|
||||
"AgentAssetReview",
|
||||
"AgentAssetRuleFeedback",
|
||||
"AgentAssetVersion",
|
||||
"AgentAssetReleaseAuditSample",
|
||||
"AgentAssetReleaseLabel",
|
||||
"AgentAssetReleaseObservation",
|
||||
"AgentOperationFeedback",
|
||||
"AgentRun",
|
||||
"AgentToolCall",
|
||||
@@ -68,6 +106,11 @@ __all__ = [
|
||||
"BudgetAllocation",
|
||||
"BudgetReservation",
|
||||
"BudgetTransaction",
|
||||
"CommercialCostEvent",
|
||||
"CommercialAdminEvent",
|
||||
"CommercialBillingPeriod",
|
||||
"CommercialEntitlement",
|
||||
"CommercialRuntimeReservation",
|
||||
"Employee",
|
||||
"ExpenseCase",
|
||||
"ExpenseCaseLink",
|
||||
@@ -76,14 +119,21 @@ __all__ = [
|
||||
"EmployeeChangeLog",
|
||||
"ExpenseClaim",
|
||||
"ExpenseClaimItem",
|
||||
"FinancialConnectorConfig",
|
||||
"FinancialConnectorConfigEvent",
|
||||
"FinancialConnectorEvent",
|
||||
"FinancialConnectorOperationalEvent",
|
||||
"FewShotSample",
|
||||
"GoldenCase",
|
||||
"HermesTaskConfig",
|
||||
"HermesTaskExecutionLog",
|
||||
"HermesRiskReport",
|
||||
"KnowledgeOnlyOfficeSession",
|
||||
"MemoryEntry",
|
||||
"MemoryEvidenceLink",
|
||||
"NotificationState",
|
||||
"PaymentReconciliationCase",
|
||||
"PaymentReconciliationEvent",
|
||||
"OrganizationUnit",
|
||||
"ReimbursementRequest",
|
||||
"RiskDisposition",
|
||||
@@ -91,10 +141,22 @@ __all__ = [
|
||||
"RiskObservation",
|
||||
"RiskObservationFeedback",
|
||||
"Role",
|
||||
"ProfileBaselineSnapshot",
|
||||
"SavingsEvent",
|
||||
"SavingsEvidenceLink",
|
||||
"SavingsOpportunity",
|
||||
"SavingsRealization",
|
||||
"SemanticParseLog",
|
||||
"SystemModelSetting",
|
||||
"SystemSetting",
|
||||
"SystemSettingSecret",
|
||||
"Tenant",
|
||||
"TenantCommercialPlan",
|
||||
"TenantMembership",
|
||||
"TenantFinanceReportConfig",
|
||||
"TenantFinanceReportRun",
|
||||
"TenantSubscription",
|
||||
"UsageMeterEvent",
|
||||
"UserSessionMetric",
|
||||
"WorkflowOutcome",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user