33using ProjectVG . Application . Services . Character ;
44using ProjectVG . Application . Services . Chat ;
55using ProjectVG . Application . Services . Chat . CostTracking ;
6+ using ProjectVG . Application . Services . Chat . Preprocessors ;
7+ using ProjectVG . Application . Services . Chat . Processors ;
8+ using ProjectVG . Application . Services . Chat . Validators ;
9+ using ProjectVG . Application . Services . Chat . Handlers ;
610using ProjectVG . Application . Services . Conversation ;
711using ProjectVG . Application . Services . Session ;
812using ProjectVG . Application . Services . Users ;
@@ -25,10 +29,34 @@ public static IServiceCollection AddApplicationServices(this IServiceCollection
2529 // Character Services
2630 services . AddScoped < ICharacterService , CharacterService > ( ) ;
2731
28- // Chat Services
32+ // Chat Services - Core
2933 services . AddScoped < IChatService , ChatService > ( ) ;
3034 services . AddScoped < IChatMetricsService , ChatMetricsService > ( ) ;
3135
36+ services . AddScoped < ICharacterService , CharacterService > ( ) ;
37+ services . AddScoped < IUserService , UserService > ( ) ;
38+
39+ // Chat Services - Validators
40+ services . AddScoped < ChatRequestValidator > ( ) ;
41+
42+ // Chat Services - Preprocessors
43+ services . AddScoped < MemoryContextPreprocessor > ( ) ;
44+ services . AddScoped < UserInputAnalysisProcessor > ( ) ;
45+
46+ // Chat Services - Processors
47+ services . AddScoped < UserInputActionProcessor > ( ) ;
48+ services . AddScoped < ChatLLMProcessor > ( ) ;
49+ services . AddScoped < ChatTTSProcessor > ( ) ;
50+ services . AddScoped < ChatResultProcessor > ( ) ;
51+
52+ // Chat Services - Handlers
53+ services . AddScoped < ChatFailureHandler > ( ) ;
54+
55+ // Chat Services - Cost Tracking Decorators
56+ services . AddCostTrackingDecorator < UserInputAnalysisProcessor > ( "UserInputAnalysis" ) ;
57+ services . AddCostTrackingDecorator < ChatLLMProcessor > ( "ChatLLM" ) ;
58+ services . AddCostTrackingDecorator < ChatTTSProcessor > ( "ChatTTS" ) ;
59+
3260 // Conversation Services
3361 services . AddScoped < IConversationService , ConversationService > ( ) ;
3462
0 commit comments