< Summary

Information
Class: Elsa.AI.Host.Options.AIHostOptions
Assembly: Elsa.AI.Host
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.AI.Host/Options/AIHostOptions.cs
Line coverage
100%
Covered lines: 11
Uncovered lines: 0
Coverable lines: 11
Total lines: 35
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_StreamingEnabled()100%11100%
get_ConversationPersistenceEnabled()100%11100%
get_ProposalReviewEnabled()100%11100%
get_ConversationRetention()100%11100%
get_ReconnectGrace()100%11100%
get_MaxToolResultBytes()100%11100%
get_MaxResolvedContextBytes()100%11100%
get_DefaultProviderName()100%11100%
get_Providers()100%11100%
get_SupportedAttachmentKinds()100%11100%
get_Agents()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.AI.Host/Options/AIHostOptions.cs

#LineLine coverage
 1namespace Elsa.AI.Host.Options;
 2
 3public class AIHostOptions
 4{
 675    public bool StreamingEnabled { get; set; } = true;
 2106    public bool ConversationPersistenceEnabled { get; set; } = true;
 667    public bool ProposalReviewEnabled { get; set; } = true;
 1538    public TimeSpan ConversationRetention { get; set; } = TimeSpan.FromDays(30);
 619    public TimeSpan ReconnectGrace { get; set; } = TimeSpan.FromMinutes(5);
 7410    public int MaxToolResultBytes { get; set; } = 64 * 1024;
 10311    public int MaxResolvedContextBytes { get; set; } = 128 * 1024;
 4712    public string? DefaultProviderName { get; set; }
 11113    public ICollection<AIProviderOptions> Providers { get; set; } = [];
 6614    public ICollection<string> SupportedAttachmentKinds { get; set; } = ["WorkflowDefinition", "WorkflowInstance"];
 7115    public ICollection<AIAgentOptions> Agents { get; set; } = [new() { Name = "workflow-author", DisplayName = "Workflow
 16}
 17
 18public class AIProviderOptions
 19{
 20    public string Name { get; set; } = "";
 21    public string Provider { get; set; } = "";
 22    public string? Model { get; set; }
 23    public string? ApiKeySecretName { get; set; }
 24    public string? Endpoint { get; set; }
 25    public bool Enabled { get; set; } = true;
 26}
 27
 28public class AIAgentOptions
 29{
 30    public string Name { get; set; } = "";
 31    public string DisplayName { get; set; } = "";
 32    public string Description { get; set; } = "";
 33    public string? ProviderName { get; set; }
 34    public ICollection<string> Permissions { get; set; } = [];
 35}