Spaces:
Paused
Paused
File size: 1,857 Bytes
f3bcb28 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | """Application Layer - Use Cases and Orchestration.
Architecture Hexagonale: La couche Application orchestre les appels
entre le Domain (logique pure) et les Ports (interfaces).
Structure:
- use_cases/ : Les cas d'utilisation de l'application
- factory.py : Wiring des dépendances (dependency injection)
"""
from backend.application.use_cases import (
# Chat
EvaluateLLMRequestUseCase,
LLMRequestCommand,
LLMRequestResult,
RequestOutcome,
# Embeddings
CreateEmbeddingsUseCase,
EmbeddingCommand,
EmbeddingResult,
EmbeddingOutcome,
# Policies
ManagePoliciesUseCase,
PolicyDTO,
CreatePolicyCommand,
UpdatePolicyCommand,
# Budgets
ManageBudgetsUseCase,
BudgetDTO,
CreateBudgetCommand,
UpdateBudgetCommand,
BudgetCheckCommand,
)
from backend.application.factory import (
create_evaluate_llm_request_use_case,
get_llm_provider_for_model,
create_embeddings_use_case,
get_embedding_provider_for_model,
create_manage_policies_use_case,
create_manage_budgets_use_case,
)
__all__ = [
# Chat Use Cases
"EvaluateLLMRequestUseCase",
"LLMRequestCommand",
"LLMRequestResult",
"RequestOutcome",
# Embedding Use Cases
"CreateEmbeddingsUseCase",
"EmbeddingCommand",
"EmbeddingResult",
"EmbeddingOutcome",
# Policy Use Cases
"ManagePoliciesUseCase",
"PolicyDTO",
"CreatePolicyCommand",
"UpdatePolicyCommand",
# Budget Use Cases
"ManageBudgetsUseCase",
"BudgetDTO",
"CreateBudgetCommand",
"UpdateBudgetCommand",
"BudgetCheckCommand",
# Factory
"create_evaluate_llm_request_use_case",
"get_llm_provider_for_model",
"create_embeddings_use_case",
"get_embedding_provider_for_model",
"create_manage_policies_use_case",
"create_manage_budgets_use_case",
]
|