| | | 1 | | namespace Elsa.AI.Abstractions.Models; |
| | | 2 | | |
| | | 3 | | public 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 | | |
| | | 16 | | public 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 | | |
| | | 25 | | public record AIContextResolutionRequest |
| | | 26 | | { |
| | 24 | 27 | | public AIContextAttachment Attachment { get; init; } = default!; |
| | 10 | 28 | | public string? TenantId { get; init; } |
| | 10 | 29 | | public string UserId { get; init; } = default!; |
| | | 30 | | } |
| | | 31 | | |
| | | 32 | | public record AITimeRange |
| | | 33 | | { |
| | | 34 | | public DateTimeOffset From { get; init; } |
| | | 35 | | public DateTimeOffset To { get; init; } |
| | | 36 | | } |