< Summary

Information
Class: Elsa.AI.Abstractions.Models.AIContextAttachment
Assembly: Elsa.AI.Abstractions
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.AI.Abstractions/Models/AIContextAttachment.cs
Line coverage
33%
Covered lines: 3
Uncovered lines: 6
Coverable lines: 9
Total lines: 36
Line coverage: 33.3%
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_Id()100%210%
get_ConversationId()100%210%
get_Kind()100%11100%
get_ReferenceId()100%11100%
get_TenantId()100%210%
get_Scope()100%210%
get_TimeRange()100%210%
get_ActivityId()100%210%
get_Metadata()100%11100%

File(s)

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

#LineLine coverage
 1namespace Elsa.AI.Abstractions.Models;
 2
 3public record AIContextAttachment
 4{
 05    public string? Id { get; init; }
 06    public string? ConversationId { get; init; }
 207    public string Kind { get; init; } = default!;
 248    public string? ReferenceId { get; init; }
 09    public string? TenantId { get; init; }
 010    public string? Scope { get; init; }
 011    public AITimeRange? TimeRange { get; init; }
 012    public string? ActivityId { get; init; }
 1013    public JsonObject Metadata { get; init; } = [];
 14}
 15
 16public record AIResolvedContext
 17{
 18    public string Kind { get; init; } = default!;
 19    public string? ReferenceId { get; init; }
 20    public string Summary { get; init; } = "";
 21    public JsonObject Data { get; init; } = [];
 22    public JsonObject Metadata { get; init; } = [];
 23}
 24
 25public record AIContextResolutionRequest
 26{
 27    public AIContextAttachment Attachment { get; init; } = default!;
 28    public string? TenantId { get; init; }
 29    public string UserId { get; init; } = default!;
 30}
 31
 32public record AITimeRange
 33{
 34    public DateTimeOffset From { get; init; }
 35    public DateTimeOffset To { get; init; }
 36}