| | | 1 | | using Microsoft.Extensions.DependencyInjection; |
| | | 2 | | |
| | | 3 | | namespace Intentum.Analytics; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// Extension methods for registering Intent Analytics. |
| | | 7 | | /// </summary> |
| | | 8 | | public static class AnalyticsExtensions |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// Adds Intent Analytics to the service collection. |
| | | 12 | | /// </summary> |
| | | 13 | | public static IServiceCollection AddIntentAnalytics(this IServiceCollection services) |
| | 0 | 14 | | { |
| | 0 | 15 | | services.AddScoped<IIntentAnalytics, IntentAnalytics>(); |
| | 0 | 16 | | return services; |
| | 0 | 17 | | } |
| | | 18 | | |
| | | 19 | | /// <summary> |
| | | 20 | | /// Adds behavior pattern detector (sequence mining, frequency anomalies, template matching) to the service collecti |
| | | 21 | | /// </summary> |
| | | 22 | | public static IServiceCollection AddBehaviorPatternDetector(this IServiceCollection services) |
| | 0 | 23 | | { |
| | 0 | 24 | | services.AddScoped<IBehaviorPatternDetector, BehaviorPatternDetector>(); |
| | 0 | 25 | | return services; |
| | 0 | 26 | | } |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// Adds intent-based profile service (timeline → labels, top intents, confidence summary) to the service collection |
| | | 30 | | /// </summary> |
| | | 31 | | public static IServiceCollection AddIntentProfileService(this IServiceCollection services) |
| | 0 | 32 | | { |
| | 0 | 33 | | services.AddScoped<IIntentProfileService, IntentProfileService>(); |
| | 0 | 34 | | return services; |
| | 0 | 35 | | } |
| | | 36 | | } |