| | | 1 | | namespace Elsa.AI.Host.Options; |
| | | 2 | | |
| | | 3 | | public class AIHostOptions |
| | | 4 | | { |
| | 67 | 5 | | public bool StreamingEnabled { get; set; } = true; |
| | 210 | 6 | | public bool ConversationPersistenceEnabled { get; set; } = true; |
| | 66 | 7 | | public bool ProposalReviewEnabled { get; set; } = true; |
| | 153 | 8 | | public TimeSpan ConversationRetention { get; set; } = TimeSpan.FromDays(30); |
| | 61 | 9 | | public TimeSpan ReconnectGrace { get; set; } = TimeSpan.FromMinutes(5); |
| | 74 | 10 | | public int MaxToolResultBytes { get; set; } = 64 * 1024; |
| | 103 | 11 | | public int MaxResolvedContextBytes { get; set; } = 128 * 1024; |
| | 47 | 12 | | public string? DefaultProviderName { get; set; } |
| | 111 | 13 | | public ICollection<AIProviderOptions> Providers { get; set; } = []; |
| | 66 | 14 | | public ICollection<string> SupportedAttachmentKinds { get; set; } = ["WorkflowDefinition", "WorkflowInstance"]; |
| | 71 | 15 | | public ICollection<AIAgentOptions> Agents { get; set; } = [new() { Name = "workflow-author", DisplayName = "Workflow |
| | | 16 | | } |
| | | 17 | | |
| | | 18 | | public 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 | | |
| | | 28 | | public 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 | | } |