37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using AutoMapper;
|
|
using xAiModels.Models.Dtos;
|
|
using xAiModels.Models.Entities;
|
|
|
|
namespace xAiModels.Configurations
|
|
{
|
|
public class XAiModelMappersProfile : Profile
|
|
{
|
|
public XAiModelMappersProfile()
|
|
{
|
|
//
|
|
// XAiMessage ...
|
|
CreateMap<XAiMessage, XAiMessageDto>();
|
|
|
|
//
|
|
// XAiVector ...
|
|
CreateMap<XAiVector, XAiVectorDto>()
|
|
.ForMember(x => x.Embedding, opt => opt.Ignore())
|
|
.ForMember(x => x.Metadata, opt => opt.Ignore());
|
|
CreateMap<XAiVectorDto, XAiVector>()
|
|
.ForMember(x => x.Embedding, opt => opt.Ignore())
|
|
.ForMember(x => x.Metadata, opt => opt.Ignore());
|
|
|
|
//
|
|
// XAiProject ...
|
|
CreateMap<XAiProject, XAiProjectDto>();
|
|
|
|
//
|
|
CreateMap<XAiMcpServer, XAiMcpServerDto>();
|
|
CreateMap<XAiMcpServerDto, XAiMcpServer>();
|
|
|
|
//
|
|
// XAiConversation ...
|
|
CreateMap<XAiConversation, XAiConversationDto>();
|
|
}
|
|
}
|
|
} |