< Summary

Information
Class: Elsa.AI.Abstractions.Models.AIContextResolutionRequest
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: 3
Uncovered lines: 0
Coverable lines: 3
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_Attachment()100%11100%
get_TenantId()100%11100%
get_UserId()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{
 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{
 2427    public AIContextAttachment Attachment { get; init; } = default!;
 1028    public string? TenantId { get; init; }
 1029    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}