last works ...

This commit is contained in:
2026-08-09 17:10:47 +03:30
parent 831c7004a8
commit 842feac905
12 changed files with 1746 additions and 222 deletions
@@ -1,3 +1,6 @@
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using xAiModels.Models.Dtos;
using xDataService.Interfaces;
@@ -7,5 +10,35 @@ namespace xAiModels.Interfaces.Enrichers
/// Ai Conversation Enricher ...
/// </summary>
public interface IXAiConversationEnricher : IXBaseEnricher<XAiConversationDto, XAiConversationDto>
{ }
{
/// <summary>
/// Converts a Signle Entity to Dto ...
/// </summary>
/// <param name="source"></param>
/// <param name="destination"></param>
/// <param name="fillMessages"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
Task EnrichAsync(
XAiConversationDto source,
XAiConversationDto destination,
bool fillMessages = false,
CancellationToken cancellationToken = default
);
/// <summary>
/// Converts a Collection of Entities to Dtos ...
/// </summary>
/// <param name="sources"></param>
/// <param name="destinations"></param>
/// <param name="fillMessages"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
Task EnrichRangeAsync(
IEnumerable<XAiConversationDto> sources,
IEnumerable<XAiConversationDto> destinations,
bool fillMessages = false,
CancellationToken cancellationToken = default
);
}
}
@@ -13,6 +13,7 @@ namespace xAiModels.Interfaces.Enrichers
XAiProjectDto source,
XAiProjectDto destination,
bool fillConversations = true,
bool fillConversationMessages = true,
CancellationToken cancellationToken = default
);
@@ -20,6 +21,7 @@ namespace xAiModels.Interfaces.Enrichers
IEnumerable<XAiProjectDto> sources,
IEnumerable<XAiProjectDto> destinations,
bool fillConversations = true,
bool fillConversationMessages = true,
CancellationToken cancellationToken = default
);
}