< Summary

Information
Class: Elsa.AI.Abstractions.Models.AIResolvedContext
Assembly: Elsa.AI.Abstractions
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.AI.Abstractions/Models/AIContextAttachment.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 36
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_Kind()100%11100%
get_ReferenceId()100%11100%
get_Summary()100%11100%
get_Data()100%11100%
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{
 5    public string? Id { get; init; }
 6    public string? ConversationId { get; init; }
 7    public string Kind { get; init; } = default!;
 8    public string? ReferenceId { get; init; }
 9    public string? TenantId { get; init; }
 10    public string? Scope { get; init; }
 11    public AITimeRange? TimeRange { get; init; }
 12    public string? ActivityId { get; init; }
 13    public JsonObject Metadata { get; init; } = [];
 14}
 15
 16public record AIResolvedContext
 17{
 1718    public string Kind { get; init; } = default!;
 1919    public string? ReferenceId { get; init; }
 5720    public string Summary { get; init; } = "";
 4521    public JsonObject Data { get; init; } = [];
 4322    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}