< Summary

Information
Class: Elsa.AI.Abstractions.Models.IncidentGroundingSummary
Assembly: Elsa.AI.Abstractions
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.AI.Abstractions/Models/AIGroundingModels.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 104
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 Crap Score Cyclomatic complexity Line coverage
get_WorkflowInstanceId()100%11100%
get_ActivityId()100%11100%
get_ActivityNodeId()100%11100%
get_ActivityType()100%11100%
get_Message()100%11100%
get_ExceptionType()100%11100%
get_ExceptionMessage()100%11100%
get_Timestamp()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.AI.Abstractions/Models/AIGroundingModels.cs

#LineLine coverage
 1namespace Elsa.AI.Abstractions.Models;
 2
 3public record AIGroundingToolResult
 4{
 5    public string Summary { get; init; } = "";
 6    public IReadOnlyCollection<JsonObject> Items { get; init; } = [];
 7    public int Total { get; init; }
 8    public int Returned { get; init; }
 9    public bool Truncated { get; init; }
 10    public string? Cursor { get; init; }
 11    public IReadOnlyCollection<string> Evidence { get; init; } = [];
 12    public IReadOnlyCollection<string> Warnings { get; init; } = [];
 13}
 14
 15public record AIGroundingCapabilityDescriptor
 16{
 17    public string Family { get; init; } = "";
 18    public string DisplayName { get; init; } = "";
 19    public bool Available { get; init; }
 20    public IReadOnlyCollection<string> ToolNames { get; init; } = [];
 21    public IReadOnlyCollection<string> AttachmentKinds { get; init; } = [];
 22    public IReadOnlyCollection<string> DisabledReasons { get; init; } = [];
 23}
 24
 25public record ActivityGroundingSummary
 26{
 27    public string Type { get; init; } = "";
 28    public int Version { get; init; }
 29    public string Namespace { get; init; } = "";
 30    public string Name { get; init; } = "";
 31    public string DisplayName { get; init; } = "";
 32    public string? Description { get; init; }
 33    public string Category { get; init; } = "";
 34    public bool IsBrowsable { get; init; }
 35    public bool IsTrigger { get; init; }
 36    public bool IsContainer { get; init; }
 37    public bool IsTerminal { get; init; }
 38    public IReadOnlyCollection<ActivityPortSummary> Inputs { get; init; } = [];
 39    public IReadOnlyCollection<ActivityPortSummary> Outputs { get; init; } = [];
 40    public IReadOnlyCollection<string> Ports { get; init; } = [];
 41    public IReadOnlyCollection<string> Constraints { get; init; } = [];
 42}
 43
 44public record ActivityPortSummary
 45{
 46    public string Name { get; init; } = "";
 47    public string DisplayName { get; init; } = "";
 48    public string? Description { get; init; }
 49    public string Type { get; init; } = "";
 50    public string? Category { get; init; }
 51    public bool IsBrowsable { get; init; } = true;
 52    public bool IsSensitive { get; init; }
 53    public bool IsRequired { get; init; }
 54    public string? UIHint { get; init; }
 55    public string? DefaultSyntax { get; init; }
 56}
 57
 58public record WorkflowGroundingSummary
 59{
 60    public string Id { get; init; } = "";
 61    public string DefinitionId { get; init; } = "";
 62    public string? Name { get; init; }
 63    public string? Description { get; init; }
 64    public int? Version { get; init; }
 65    public bool IsLatest { get; init; }
 66    public bool IsPublished { get; init; }
 67    public bool IsReadonly { get; init; }
 68    public string MaterializerName { get; init; } = "";
 69    public string? ProviderName { get; init; }
 70    public DateTimeOffset CreatedAt { get; init; }
 71    public IReadOnlyCollection<string> ActivityTypes { get; init; } = [];
 72    public IReadOnlyCollection<string> Variables { get; init; } = [];
 73    public IReadOnlyCollection<string> Inputs { get; init; } = [];
 74    public IReadOnlyCollection<string> Outputs { get; init; } = [];
 75}
 76
 77public record RuntimeInstanceGroundingSummary
 78{
 79    public string Id { get; init; } = "";
 80    public string? TenantId { get; init; }
 81    public string DefinitionId { get; init; } = "";
 82    public string DefinitionVersionId { get; init; } = "";
 83    public int Version { get; init; }
 84    public string Status { get; init; } = "";
 85    public string SubStatus { get; init; } = "";
 86    public string? CorrelationId { get; init; }
 87    public string? Name { get; init; }
 88    public int IncidentCount { get; init; }
 89    public DateTimeOffset CreatedAt { get; init; }
 90    public DateTimeOffset? UpdatedAt { get; init; }
 91    public DateTimeOffset? FinishedAt { get; init; }
 92}
 93
 94public record IncidentGroundingSummary
 95{
 396    public string WorkflowInstanceId { get; init; } = "";
 397    public string ActivityId { get; init; } = "";
 398    public string ActivityNodeId { get; init; } = "";
 399    public string ActivityType { get; init; } = "";
 3100    public string Message { get; init; } = "";
 2101    public string? ExceptionType { get; init; }
 2102    public string? ExceptionMessage { get; init; }
 2103    public DateTimeOffset Timestamp { get; init; }
 104}