| | | 1 | | namespace Elsa.AI.Abstractions.Models; |
| | | 2 | | |
| | | 3 | | public record AIGroundingToolResult |
| | | 4 | | { |
| | | 5 | | public string Summary { get; init; } = ""; |
| | | 6 | | public IReadOnlyCollection<JsonObject> Items { get; init; } = []; |
| | | 7 | | public int Total { get; init; } |
| | | 8 | | public int Returned { get; init; } |
| | | 9 | | public bool Truncated { get; init; } |
| | | 10 | | public string? Cursor { get; init; } |
| | | 11 | | public IReadOnlyCollection<string> Evidence { get; init; } = []; |
| | | 12 | | public IReadOnlyCollection<string> Warnings { get; init; } = []; |
| | | 13 | | } |
| | | 14 | | |
| | | 15 | | public record AIGroundingCapabilityDescriptor |
| | | 16 | | { |
| | | 17 | | public string Family { get; init; } = ""; |
| | | 18 | | public string DisplayName { get; init; } = ""; |
| | | 19 | | public bool Available { get; init; } |
| | | 20 | | public IReadOnlyCollection<string> ToolNames { get; init; } = []; |
| | | 21 | | public IReadOnlyCollection<string> AttachmentKinds { get; init; } = []; |
| | | 22 | | public IReadOnlyCollection<string> DisabledReasons { get; init; } = []; |
| | | 23 | | } |
| | | 24 | | |
| | | 25 | | public record ActivityGroundingSummary |
| | | 26 | | { |
| | | 27 | | public string Type { get; init; } = ""; |
| | | 28 | | public int Version { get; init; } |
| | | 29 | | public string Namespace { get; init; } = ""; |
| | | 30 | | public string Name { get; init; } = ""; |
| | | 31 | | public string DisplayName { get; init; } = ""; |
| | | 32 | | public string? Description { get; init; } |
| | | 33 | | public string Category { get; init; } = ""; |
| | | 34 | | public bool IsBrowsable { get; init; } |
| | | 35 | | public bool IsTrigger { get; init; } |
| | | 36 | | public bool IsContainer { get; init; } |
| | | 37 | | public bool IsTerminal { get; init; } |
| | | 38 | | public IReadOnlyCollection<ActivityPortSummary> Inputs { get; init; } = []; |
| | | 39 | | public IReadOnlyCollection<ActivityPortSummary> Outputs { get; init; } = []; |
| | | 40 | | public IReadOnlyCollection<string> Ports { get; init; } = []; |
| | | 41 | | public IReadOnlyCollection<string> Constraints { get; init; } = []; |
| | | 42 | | } |
| | | 43 | | |
| | | 44 | | public record ActivityPortSummary |
| | | 45 | | { |
| | | 46 | | public string Name { get; init; } = ""; |
| | | 47 | | public string DisplayName { get; init; } = ""; |
| | | 48 | | public string? Description { get; init; } |
| | | 49 | | public string Type { get; init; } = ""; |
| | | 50 | | public string? Category { get; init; } |
| | | 51 | | public bool IsBrowsable { get; init; } = true; |
| | | 52 | | public bool IsSensitive { get; init; } |
| | | 53 | | public bool IsRequired { get; init; } |
| | | 54 | | public string? UIHint { get; init; } |
| | | 55 | | public string? DefaultSyntax { get; init; } |
| | | 56 | | } |
| | | 57 | | |
| | | 58 | | public record WorkflowGroundingSummary |
| | | 59 | | { |
| | | 60 | | public string Id { get; init; } = ""; |
| | | 61 | | public string DefinitionId { get; init; } = ""; |
| | | 62 | | public string? Name { get; init; } |
| | | 63 | | public string? Description { get; init; } |
| | | 64 | | public int? Version { get; init; } |
| | | 65 | | public bool IsLatest { get; init; } |
| | | 66 | | public bool IsPublished { get; init; } |
| | | 67 | | public bool IsReadonly { get; init; } |
| | | 68 | | public string MaterializerName { get; init; } = ""; |
| | | 69 | | public string? ProviderName { get; init; } |
| | | 70 | | public DateTimeOffset CreatedAt { get; init; } |
| | | 71 | | public IReadOnlyCollection<string> ActivityTypes { get; init; } = []; |
| | | 72 | | public IReadOnlyCollection<string> Variables { get; init; } = []; |
| | | 73 | | public IReadOnlyCollection<string> Inputs { get; init; } = []; |
| | | 74 | | public IReadOnlyCollection<string> Outputs { get; init; } = []; |
| | | 75 | | } |
| | | 76 | | |
| | | 77 | | public record RuntimeInstanceGroundingSummary |
| | | 78 | | { |
| | | 79 | | public string Id { get; init; } = ""; |
| | | 80 | | public string? TenantId { get; init; } |
| | | 81 | | public string DefinitionId { get; init; } = ""; |
| | | 82 | | public string DefinitionVersionId { get; init; } = ""; |
| | | 83 | | public int Version { get; init; } |
| | | 84 | | public string Status { get; init; } = ""; |
| | | 85 | | public string SubStatus { get; init; } = ""; |
| | | 86 | | public string? CorrelationId { get; init; } |
| | | 87 | | public string? Name { get; init; } |
| | | 88 | | public int IncidentCount { get; init; } |
| | | 89 | | public DateTimeOffset CreatedAt { get; init; } |
| | | 90 | | public DateTimeOffset? UpdatedAt { get; init; } |
| | | 91 | | public DateTimeOffset? FinishedAt { get; init; } |
| | | 92 | | } |
| | | 93 | | |
| | | 94 | | public record IncidentGroundingSummary |
| | | 95 | | { |
| | 3 | 96 | | public string WorkflowInstanceId { get; init; } = ""; |
| | 3 | 97 | | public string ActivityId { get; init; } = ""; |
| | 3 | 98 | | public string ActivityNodeId { get; init; } = ""; |
| | 3 | 99 | | public string ActivityType { get; init; } = ""; |
| | 3 | 100 | | public string Message { get; init; } = ""; |
| | 2 | 101 | | public string? ExceptionType { get; init; } |
| | 2 | 102 | | public string? ExceptionMessage { get; init; } |
| | 2 | 103 | | public DateTimeOffset Timestamp { get; init; } |
| | | 104 | | } |