Service Layer Overview

The service layer contains business logic organized into four categories:

Resource Services (ai4drpm/services/resources/)

Manages legal resources, documents, provisions, classifications, and analyses.

Engine Services (ai4drpm/services/engine/)

AI/ML pipeline orchestration and token usage tracking.

Shared Services (ai4drpm/services/shared/)

Cross-cutting services: user management, token lifecycle, and statistics.

Bulk Services (ai4drpm/services/bulk/)

Handles unified bulk operations (create, execute, update, delete) across resources.