44 lines
1.5 KiB
C#
44 lines
1.5 KiB
C#
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using xAiModels.Models.Dtos;
|
|
using xDataService.Interfaces;
|
|
|
|
namespace xAiModels.Interfaces.Enrichers
|
|
{
|
|
/// <summary>
|
|
/// 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
|
|
);
|
|
}
|
|
} |