< Summary

Information
Class: Intentum.AI.Classification.IntentClassificationResult
Assembly: Intentum.AI
File(s): /home/runner/work/Intentum/Intentum/src/Intentum.AI/Classification/IIntentClassifier.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 24
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor(...)100%11100%

File(s)

/home/runner/work/Intentum/Intentum/src/Intentum.AI/Classification/IIntentClassifier.cs

#LineLine coverage
 1using Intentum.Core.Behavior;
 2
 3namespace Intentum.AI.Classification;
 4
 5/// <summary>
 6/// Classifies intent from behavior using an external LLM or classification service.
 7/// Returns structured results with intent name, confidence, and reasoning.
 8/// </summary>
 9public interface IIntentClassifier
 10{
 11    Task<IntentClassificationResult> ClassifyAsync(
 12        BehaviorSpace behaviorSpace,
 13        IReadOnlyList<string>? candidateIntents = null,
 14        CancellationToken cancellationToken = default);
 15}
 16
 17/// <summary>
 18/// Structured result from an LLM-based intent classification.
 19/// </summary>
 420public sealed record IntentClassificationResult(
 421    string IntentName,
 322    double Confidence,
 323    string? Reasoning = null
 424);