< Summary

Information
Class: Intentum.Explainability.IntentTreeIntentSummary
Assembly: Intentum.Explainability
File(s): /home/runner/work/Intentum/Intentum/src/Intentum.Explainability/IntentDecisionTree.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 34
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.Explainability/IntentDecisionTree.cs

#LineLine coverage
 1using Intentum.Runtime.Policy;
 2
 3namespace Intentum.Explainability;
 4
 5/// <summary>
 6/// Root of an intent decision tree: the final policy decision and matched rule.
 7/// </summary>
 8/// <param name="Decision">Policy decision for the intent.</param>
 9/// <param name="MatchedRuleName">Name of the rule that matched, or null if default (Observe).</param>
 10/// <param name="Intent">Summary of the inferred intent (name, confidence).</param>
 11/// <param name="Signals">Contributing signals (behavior dimensions / intent signals).</param>
 12/// <param name="BehaviorSummary">Optional summary of behavior events that led to the intent (e.g. from metadata).</para
 13public sealed record IntentDecisionTree(
 14    PolicyDecision Decision,
 15    string? MatchedRuleName,
 16    IntentTreeIntentSummary Intent,
 17    IReadOnlyList<IntentTreeSignalNode> Signals,
 18    string? BehaviorSummary = null);
 19
 20/// <summary>
 21/// Summary of the inferred intent for the tree (name and confidence).
 22/// </summary>
 423public sealed record IntentTreeIntentSummary(
 124    string Name,
 125    string ConfidenceLevel,
 526    double ConfidenceScore);
 27
 28/// <summary>
 29/// A signal node in the intent tree (source, description, weight).
 30/// </summary>
 31public sealed record IntentTreeSignalNode(
 32    string Source,
 33    string Description,
 34    double Weight);