Compare commits

...
16 Commits
Author SHA1 Message Date
saherelm 26df2c7ebc last ... 2026-10-02 22:12:26 +03:30
saherelm 755eafa7d2 Add Support for Attaching Additional Contents to Specified Prompt Message when Converting to Chat Message, Specified For File Support ... 2026-09-30 23:12:39 +03:30
saherelm 47b2cbc0d2 last ... 2026-09-30 15:27:26 +03:30
saherelm f48b9257a3 last ... 2026-09-29 17:41:17 +03:30
saherelm 5d3601ba44 last ... 2026-09-28 22:36:16 +03:30
saherelm 33922537d5 last ... 2026-09-28 18:00:00 +03:30
saherelm 8e23a09f7b apply some changes on default ai resource titles ... 2026-09-28 17:49:50 +03:30
saherelm 2aa0607e85 last ... 2026-09-28 16:34:36 +03:30
saherelm a4dee3b5a4 last ... 2026-09-27 22:00:56 +03:30
saherelm 9f27b7825e last ... 2026-09-27 16:08:32 +03:30
saherelm eb27e9ce1f last ... 2026-09-25 19:48:23 +03:30
saherelm 490058d1a8 last ... 2026-09-19 17:03:16 +03:30
saherelm f9b5f1f6aa last ... 2026-09-06 08:46:01 +03:30
saherelm a9b75b3c33 apply sorting ... 2026-09-06 00:18:24 +03:30
saherelm 88607a9e4d sorting ... 2026-09-03 23:58:37 +03:30
saherelm 7ef56fbc1e kast ... 2026-09-03 10:38:06 +03:30
111 changed files with 2013 additions and 473 deletions
@@ -1,9 +1,9 @@
using System; using System;
using xAiModels.Constants;
using xDataService.Providers;
using xAiModels.Models.Entities;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders; using Microsoft.EntityFrameworkCore.Metadata.Builders;
using xAiModels.Constants;
using xAiModels.Models.Entities;
using xDataService.Providers;
namespace xAiModels.Configurations.Entities namespace xAiModels.Configurations.Entities
{ {
@@ -1,9 +1,9 @@
using System; using System;
using xAiModels.Constants;
using xDataService.Providers;
using xAiModels.Models.Entities;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders; using Microsoft.EntityFrameworkCore.Metadata.Builders;
using xAiModels.Constants;
using xAiModels.Models.Entities;
using xDataService.Providers;
namespace xAiModels.Configurations.Entities namespace xAiModels.Configurations.Entities
{ {
@@ -1,9 +1,9 @@
using System; using System;
using xAiModels.Constants;
using xDataService.Providers;
using xAiModels.Models.Entities;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders; using Microsoft.EntityFrameworkCore.Metadata.Builders;
using xAiModels.Constants;
using xAiModels.Models.Entities;
using xDataService.Providers;
namespace xAiModels.Configurations.Entities namespace xAiModels.Configurations.Entities
{ {
+1 -1
View File
@@ -1,5 +1,5 @@
using xAiModels.Constants;
using xAiModels.Models; using xAiModels.Models;
using xAiModels.Constants;
namespace xAiModels.Configurations namespace xAiModels.Configurations
{ {
+1
View File
@@ -6,6 +6,7 @@ namespace xAiModels.Constants
public enum XAiModelProviderType public enum XAiModelProviderType
{ {
None, None,
OpenAI,
Ollama, Ollama,
DeepSeek, DeepSeek,
HuggingFace HuggingFace
+14 -14
View File
@@ -1,25 +1,25 @@
using System; using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using xAiModels.Providers.Dtos;
using xAiModels.Providers.Entities;
using xCommons.Extensions;
using xDataService.Constants;
using xDataService.Db; using xDataService.Db;
using xDataService.Models;
using xExceptions.Constants;
using xPushService.Helpers;
using xPushService.DI; using xPushService.DI;
using xDataService.DI; using xDataService.DI;
using xAiModels.Interfaces.Dtos;
using xAiModels.Helpers;
using xCommons.Helpers; using xCommons.Helpers;
using xAiModels.Interfaces.Entities; using xAiModels.Helpers;
using xAiModels.Interfaces; using xDataService.Models;
using xAiModels.Providers; using xAiModels.Providers;
using xAiModels.Constants; using xAiModels.Constants;
using xAiModels.Interfaces.Enrichers; using xCommons.Extensions;
using xPushService.Helpers;
using xAiModels.Interfaces;
using xExceptions.Constants;
using xDataService.Constants;
using xAiModels.Providers.Dtos;
using xAiModels.Interfaces.Dtos;
using Microsoft.AspNetCore.Builder;
using xAiModels.Providers.Entities;
using xAiModels.Interfaces.Entities;
using xAiModels.Providers.Enrichers; using xAiModels.Providers.Enrichers;
using xAiModels.Interfaces.Enrichers;
using Microsoft.Extensions.DependencyInjection;
namespace xAiModels.DI namespace xAiModels.DI
{ {
+1 -1
View File
@@ -1,5 +1,5 @@
using Microsoft.Extensions.AI;
using xCommons.Extensions; using xCommons.Extensions;
using Microsoft.Extensions.AI;
namespace xAiModels.Extensions namespace xAiModels.Extensions
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
using Microsoft.Extensions.AI;
using xAiModels.Constants; using xAiModels.Constants;
using xCommons.Extensions; using xCommons.Extensions;
using Microsoft.Extensions.AI;
namespace xAiModels.Extensions namespace xAiModels.Extensions
{ {
+1 -1
View File
@@ -1,7 +1,7 @@
using System.Linq; using System.Linq;
using xAiModels.Configurations;
using xAiModels.Models; using xAiModels.Models;
using xCommons.Extensions; using xCommons.Extensions;
using xAiModels.Configurations;
namespace xAiModels.Extensions namespace xAiModels.Extensions
{ {
+364 -6
View File
@@ -1,6 +1,14 @@
using xAiModels.Models.Dtos; using System;
using xAiModels.Models.Entities; using System.Linq;
using xAiModels.Models;
using xModels.Extensions;
using xCommons.Extensions; using xCommons.Extensions;
using xAiModels.Constants;
using xAiModels.Models.Dtos;
using xExceptions.Constants;
using Microsoft.Extensions.AI;
using xAiModels.Models.Entities;
using System.Collections.Generic;
namespace xAiModels.Extensions namespace xAiModels.Extensions
{ {
@@ -20,7 +28,6 @@ namespace xAiModels.Extensions
var result = var result =
!source.IsNullOrDefault() && !source.IsNullOrDefault() &&
!source.OwnerId.IsNullOrEmpty() && !source.OwnerId.IsNullOrEmpty() &&
!source.Title.IsNullOrEmpty() &&
!source.Prompt.IsNullOrEmpty(); !source.Prompt.IsNullOrEmpty();
// //
@@ -32,7 +39,6 @@ namespace xAiModels.Extensions
var result = var result =
!source.IsNullOrDefault() && !source.IsNullOrDefault() &&
!source.OwnerId.IsNullOrEmpty() && !source.OwnerId.IsNullOrEmpty() &&
!source.Title.IsNullOrEmpty() &&
!source.Prompt.IsNullOrEmpty(); !source.Prompt.IsNullOrEmpty();
// //
@@ -50,7 +56,6 @@ namespace xAiModels.Extensions
var result = var result =
!source.IsNullOrDefault() && !source.IsNullOrDefault() &&
!source.OwnerId.IsNullOrEmpty() && !source.OwnerId.IsNullOrEmpty() &&
!source.Title.IsNullOrEmpty() &&
!source.ProjectId.IsNull() && !source.ProjectId.IsNull() &&
!source.ProjectId.IsDefaultGuid(); !source.ProjectId.IsDefaultGuid();
@@ -63,7 +68,6 @@ namespace xAiModels.Extensions
var result = var result =
!source.IsNullOrDefault() && !source.IsNullOrDefault() &&
!source.OwnerId.IsNullOrEmpty() && !source.OwnerId.IsNullOrEmpty() &&
!source.Title.IsNullOrEmpty() &&
!source.ProjectId.IsNull() && !source.ProjectId.IsNull() &&
!source.ProjectId.IsDefaultGuid(); !source.ProjectId.IsDefaultGuid();
@@ -104,5 +108,359 @@ namespace xAiModels.Extensions
// //
return result; return result;
} }
/// <summary>
/// Validate a Model Descriptor ...
/// </summary>
/// <param name="source"></param>
/// <returns></returns>
public static bool IsValid(this XAiModelDescriptor source)
{
//
var result =
!source.IsNullOrDefault() &&
!source.Name.IsNullOrEmpty() &&
!source.Url.IsNullOrEmpty() &&
source.Url.IsValidUrl() &&
!source.LLM.IsNullOrEmpty() &&
source.Provider != Constants.XAiModelProviderType.None;
//
return result;
}
/// <summary>
/// Validate Specified Param ...
/// </summary>
/// <param name="source"></param>
/// <returns></returns>
public static bool IsValid(this XAiPromptParam source)
{
//
var result =
!source.IsNullOrDefault() &&
!source.Name.IsNullOrEmpty() &&
!source.Param.IsNullOrEmpty();
//
return result;
}
/// <summary>
/// Validate Specified Prompt ...
/// </summary>
/// <param name="source"></param>
/// <returns></returns>
public static bool IsValid(this XAiPromptDescriptor source)
{
//
var result =
!source.IsNullOrDefault() &&
!source.Name.IsNullOrEmpty() &&
!source.Template.IsNullOrEmpty();
if (!result)
{
return result;
}
//
if (source.Params.HasChild())
{
result =
result &&
source.Params.All(x => x.IsValid());
}
//
return result;
}
/// <summary>
/// Validate a Request for Retrieve Response in Controllers ...
/// </summary>
/// <param name="source"></param>
/// <returns></returns>
public static bool IsValid(this XAiResponseRequest source)
{
//
var result =
!source.IsNullOrDefault() &&
!source.Prompt.IsNullOrEmpty();
//
return result;
}
/// <summary>
/// Validate a File Extraction Result ...
/// </summary>
/// <param name="source"></param>
/// <returns></returns>
public static bool IsValid(this XFileExtractionResult source)
{
//
var result =
!source.IsNullOrDefault() &&
(
source.Images.HasChild() ||
!source.Text.IsNullOrEmpty() ||
!source.AudioTranscript.IsNullOrEmpty()
);
return result;
}
/// <summary>
/// Converts a File Extraction Result to AI Contents ...
/// </summary>
/// <param name="source"></param>
/// <returns></returns>
public static IList<AIContent> ToAIContents(this XFileExtractionResult source)
{
//
var result = new List<AIContent>();
//
if (source.IsValid())
{
//
// Main Text ...
if (!source.Text.IsNullOrEmpty())
{
result.Add(new TextContent(source.Text));
}
//
// Images ...
if (source.Images.HasChild())
{
//
foreach (var img in source.Images)
{
result.Add(new DataContent(img.Bytes, img.MimeType));
}
}
//
// Transcripted Audio ...
if (!source.AudioTranscript.IsNullOrEmpty())
{
result.Add(new TextContent($"[Audio Transcript]\n{source.AudioTranscript}"));
}
}
//
return result;
}
/// <summary>
/// Check a Collection Contains Default Project for Specified Owner or not ...
/// </summary>
/// <param name="source"></param>
/// <param name="ownerId"></param>
/// <returns></returns>
public static bool HasDefaultProject(
this IEnumerable<XAiProjectDto> source,
string ownerId
)
{
//
// Validate Args ...
if (source.HasChild() ||
ownerId.IsNullOrEmpty())
{
XException.InvalidArgs.Throw();
}
//
var item = source
.FirstOrDefault(x =>
x.Title
.ToNormalString()
.Contains(ownerId.ToNormalString()) &&
x.Title
.ToNormalString()
.Contains(XAiModelsConstants.DefaultXAiProjectDescriptionResourceID.ToNormalString())
);
//
var result = !item.IsNullOrDefault();
//
return result;
}
/// <summary>
/// Check a Collection Contains Default Conversation for Specified Project or not ...
/// </summary>
/// <param name="source"></param>
/// <param name="ownerId"></param>
/// <param name="projectId"></param>
/// <returns></returns>
public static bool HasDefaultConversation(
this IEnumerable<XAiConversationDto> source,
string ownerId,
Guid projectId
)
{
//
// Validate Args ...
if (source.HasChild() ||
projectId.IsDefaultGuid())
{
XException.InvalidArgs.Throw();
}
//
var item = source
.FirstOrDefault(x =>
x.Title
.ToNormalString()
.Contains(ownerId.ToNormalString()) &&
x.Title
.ToNormalString()
.Contains(projectId.ToString().ToNormalString()) &&
x.Title
.ToNormalString()
.Contains(XAiModelsConstants.DefaultXAiConversationTitleResourceID)
);
//
var result = !item.IsNullOrDefault();
//
return result;
}
/// <summary>
/// Retrieve Default Project Id from a Collection ...
/// </summary>
/// <param name="source"></param>
/// <param name="ownerId"></param>
/// <returns></returns>
public static Guid GetDafualtProject(
this IEnumerable<XAiProjectDto> source,
string ownerId
)
{
//
// Validate Args ...
if (!source.HasChild() ||
ownerId.IsNullOrEmpty())
{
XException.InvalidArgs.Throw();
}
//
var item = source
.FirstOrDefault(x =>
x.Title
.ToNormalString()
.Contains(ownerId.ToNormalString()) &&
x.Title
.ToNormalString()
.Contains(XAiModelsConstants.XAiProjectTitleIdentifier.ToNormalString())
);
if (item.IsNullOrDefault())
{
XException.NotFound.Throw();
}
//
return item.Id;
}
/// <summary>
/// Get Default Conversation Id from a Collection Contains ...
/// </summary>
/// <param name="source"></param>
/// <param name="ownerId"></param>
/// <param name="projectId"></param>
/// <returns></returns>
public static Guid GetDefaultConversation(
this IEnumerable<XAiConversationDto> source,
string ownerId,
Guid projectId
)
{
//
// Validate Args ...
if (!source.HasChild() ||
ownerId.IsNullOrEmpty() ||
projectId.IsDefaultGuid())
{
XException.InvalidArgs.Throw();
}
//
var item = source
.FirstOrDefault(x =>
x.Title
.ToNormalString()
.Contains(ownerId.ToNormalString()) &&
x.Title
.ToNormalString()
.Contains(XAiModelsConstants.XAiConversationTitleIdentifier.ToNormalString())
);
if (item.IsNullOrDefault())
{
XException.NotFound.Throw();
}
//
var result = item.Id;
//
return result;
}
/// <summary>
/// Converts a Message Dto to ChatMessage ...
/// </summary>
/// <param name="source"></param>
/// <param name="additionalContents"></param>
/// <returns></returns>
public static ChatMessage ToChatMessages(
this XAiMessageDto source,
IList<AIContent> additionalContents = null
)
{
//
ChatMessage result = null;
//
if (!source.IsNullOrDefault())
{
//
var contents = new List<AIContent>
{
//
// Add Source Content ...
new TextContent(source.Content)
};
//
// Add Additional Content ...
if (additionalContents.HasChild())
{
contents.AddRange(additionalContents);
}
//
result = new ChatMessage
{
Contents = contents,
AuthorName =
source.Role == XAiChatRole.User &&
!source.Owner.IsNullOrDefault()
? source.Owner.GetFullname()
: string.Empty,
Role = source.Role.ToChatRole(),
MessageId = source.Id.ToString(),
};
}
//
return result;
}
} }
} }
+4 -4
View File
@@ -1,12 +1,12 @@
using System; using System;
using GraphQL.Types; using GraphQL.Types;
using xAiModels.Interfaces.Entities;
using xAiModels.Models.Entities;
using xAiModels.Providers.Entities;
using xAiModels.Providers.GraphQL;
using xDataService.Db; using xDataService.Db;
using xDataService.Models; using xDataService.Models;
using xDataService.Providers; using xDataService.Providers;
using xAiModels.Models.Entities;
using xAiModels.Providers.GraphQL;
using xAiModels.Providers.Entities;
using xAiModels.Interfaces.Entities;
namespace xAiModels.Helpers namespace xAiModels.Helpers
{ {
+1 -1
View File
@@ -1,7 +1,7 @@
using System; using System;
using xAiModels.Models.Dtos; using xAiModels.Models.Dtos;
using xAiModels.Models.Entities;
using xPushService.Interfaces; using xPushService.Interfaces;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Dtos namespace xAiModels.Interfaces.Dtos
{ {
@@ -1,10 +1,10 @@
using System; using System;
using System.Collections.Generic;
using System.Threading; using System.Threading;
using System.Threading.Tasks;
using xAiModels.Models.Dtos; using xAiModels.Models.Dtos;
using xAiModels.Models.Entities; using System.Threading.Tasks;
using xDataService.Interfaces; using xDataService.Interfaces;
using xAiModels.Models.Entities;
using System.Collections.Generic;
namespace xAiModels.Interfaces.Dtos namespace xAiModels.Interfaces.Dtos
{ {
@@ -1,8 +1,8 @@
using System; using System;
using xAiModels.Models.Dtos; using xAiModels.Models.Dtos;
using xAiModels.Models.Entities;
using xAiModels.Providers.Dtos;
using xPushService.Interfaces; using xPushService.Interfaces;
using xAiModels.Providers.Dtos;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Dtos namespace xAiModels.Interfaces.Dtos
{ {
+1 -1
View File
@@ -1,7 +1,7 @@
using System; using System;
using xAiModels.Models.Dtos; using xAiModels.Models.Dtos;
using xAiModels.Models.Entities;
using xPushService.Interfaces; using xPushService.Interfaces;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Dtos namespace xAiModels.Interfaces.Dtos
{ {
@@ -1,10 +1,10 @@
using System; using System;
using System.Collections.Generic;
using System.Threading; using System.Threading;
using System.Threading.Tasks;
using xAiModels.Models.Dtos; using xAiModels.Models.Dtos;
using xAiModels.Models.Entities; using System.Threading.Tasks;
using xDataService.Interfaces; using xDataService.Interfaces;
using xAiModels.Models.Entities;
using System.Collections.Generic;
namespace xAiModels.Interfaces.Dtos namespace xAiModels.Interfaces.Dtos
{ {
@@ -1,8 +1,8 @@
using System; using System;
using xAiModels.Models.Dtos; using xAiModels.Models.Dtos;
using xAiModels.Models.Entities;
using xAiModels.Providers.Dtos;
using xPushService.Interfaces; using xPushService.Interfaces;
using xAiModels.Providers.Dtos;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Dtos namespace xAiModels.Interfaces.Dtos
{ {
+1 -1
View File
@@ -1,7 +1,7 @@
using System; using System;
using xAiModels.Models.Dtos; using xAiModels.Models.Dtos;
using xAiModels.Models.Entities;
using xPushService.Interfaces; using xPushService.Interfaces;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Dtos namespace xAiModels.Interfaces.Dtos
{ {
@@ -1,10 +1,10 @@
using System; using System;
using System.Collections.Generic;
using System.Threading; using System.Threading;
using System.Threading.Tasks;
using xAiModels.Models.Dtos; using xAiModels.Models.Dtos;
using xAiModels.Models.Entities; using System.Threading.Tasks;
using xDataService.Interfaces; using xDataService.Interfaces;
using xAiModels.Models.Entities;
using System.Collections.Generic;
namespace xAiModels.Interfaces.Dtos namespace xAiModels.Interfaces.Dtos
{ {
@@ -1,8 +1,8 @@
using System; using System;
using xAiModels.Models.Dtos; using xAiModels.Models.Dtos;
using xAiModels.Models.Entities;
using xAiModels.Providers.Dtos;
using xPushService.Interfaces; using xPushService.Interfaces;
using xAiModels.Providers.Dtos;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Dtos namespace xAiModels.Interfaces.Dtos
{ {
@@ -1,8 +1,8 @@
using System.Collections.Generic;
using System.Threading; using System.Threading;
using System.Threading.Tasks;
using xAiModels.Models.Dtos; using xAiModels.Models.Dtos;
using System.Threading.Tasks;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using System.Collections.Generic;
namespace xAiModels.Interfaces.Enrichers namespace xAiModels.Interfaces.Enrichers
{ {
+2 -2
View File
@@ -1,8 +1,8 @@
using System.Collections.Generic;
using System.Threading; using System.Threading;
using System.Threading.Tasks;
using xAiModels.Models.Dtos; using xAiModels.Models.Dtos;
using System.Threading.Tasks;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using System.Collections.Generic;
namespace xAiModels.Interfaces.Enrichers namespace xAiModels.Interfaces.Enrichers
{ {
+2 -2
View File
@@ -1,8 +1,8 @@
using System.Collections.Generic;
using System.Threading; using System.Threading;
using System.Threading.Tasks;
using xAiModels.Models.Dtos; using xAiModels.Models.Dtos;
using System.Threading.Tasks;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using System.Collections.Generic;
namespace xAiModels.Interfaces.Enrichers namespace xAiModels.Interfaces.Enrichers
{ {
@@ -1,6 +1,6 @@
using System; using System;
using xAiModels.Models.Entities;
using xPushService.Interfaces; using xPushService.Interfaces;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Entities namespace xAiModels.Interfaces.Entities
{ {
@@ -1,6 +1,6 @@
using System; using System;
using xAiModels.Models.Entities;
using xDataService.Interfaces; using xDataService.Interfaces;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Entities namespace xAiModels.Interfaces.Entities
{ {
@@ -1,6 +1,6 @@
using System; using System;
using xAiModels.Models.Entities;
using xDataService.Interfaces; using xDataService.Interfaces;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Entities namespace xAiModels.Interfaces.Entities
{ {
@@ -1,6 +1,6 @@
using System; using System;
using xAiModels.Models.Entities;
using xDataService.Interfaces; using xDataService.Interfaces;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Entities namespace xAiModels.Interfaces.Entities
{ {
@@ -1,5 +1,5 @@
using xAiModels.Models.Entities;
using xDataService.Interfaces; using xDataService.Interfaces;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Entities namespace xAiModels.Interfaces.Entities
{ {
@@ -1,7 +1,7 @@
using System; using System;
using xPushService.Interfaces;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xAiModels.Providers.Entities; using xAiModels.Providers.Entities;
using xPushService.Interfaces;
namespace xAiModels.Interfaces.Entities namespace xAiModels.Interfaces.Entities
{ {
@@ -1,6 +1,6 @@
using System; using System;
using xAiModels.Models.Entities;
using xDataService.Interfaces; using xDataService.Interfaces;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Entities namespace xAiModels.Interfaces.Entities
{ {
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace xAiModels.Interfaces.Entities
{
public interface IXAiDocumentEntityHub
{
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
using System; using System;
using xAiModels.Models.Entities;
using xPushService.Interfaces; using xPushService.Interfaces;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Entities namespace xAiModels.Interfaces.Entities
{ {
@@ -1,6 +1,6 @@
using System; using System;
using xAiModels.Models.Entities;
using xDataService.Interfaces; using xDataService.Interfaces;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Entities namespace xAiModels.Interfaces.Entities
{ {
@@ -1,6 +1,6 @@
using System; using System;
using xAiModels.Models.Entities;
using xDataService.Interfaces; using xDataService.Interfaces;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Entities namespace xAiModels.Interfaces.Entities
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
using System; using System;
using xAiModels.Models.Entities;
using xDataService.Interfaces; using xDataService.Interfaces;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Entities namespace xAiModels.Interfaces.Entities
{ {
@@ -1,5 +1,5 @@
using xAiModels.Models.Entities;
using xDataService.Interfaces; using xDataService.Interfaces;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Entities namespace xAiModels.Interfaces.Entities
{ {
@@ -1,7 +1,7 @@
using System; using System;
using xPushService.Interfaces;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xAiModels.Providers.Entities; using xAiModels.Providers.Entities;
using xPushService.Interfaces;
namespace xAiModels.Interfaces.Entities namespace xAiModels.Interfaces.Entities
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
using System; using System;
using xAiModels.Models.Entities;
using xDataService.Interfaces; using xDataService.Interfaces;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Entities namespace xAiModels.Interfaces.Entities
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
using System; using System;
using xAiModels.Models.Entities;
using xPushService.Interfaces; using xPushService.Interfaces;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Entities namespace xAiModels.Interfaces.Entities
{ {
@@ -1,9 +1,6 @@
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using xAiModels.Models.Entities;
using xDataService.Interfaces; using xDataService.Interfaces;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Entities namespace xAiModels.Interfaces.Entities
{ {
@@ -1,6 +1,6 @@
using System; using System;
using xAiModels.Models.Entities;
using xDataService.Interfaces; using xDataService.Interfaces;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Entities namespace xAiModels.Interfaces.Entities
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
using System; using System;
using xAiModels.Models.Entities;
using xDataService.Interfaces; using xDataService.Interfaces;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Entities namespace xAiModels.Interfaces.Entities
{ {
@@ -1,5 +1,5 @@
using xAiModels.Models.Entities;
using xDataService.Interfaces; using xDataService.Interfaces;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Entities namespace xAiModels.Interfaces.Entities
{ {
@@ -1,7 +1,7 @@
using System; using System;
using xPushService.Interfaces;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xAiModels.Providers.Entities; using xAiModels.Providers.Entities;
using xPushService.Interfaces;
namespace xAiModels.Interfaces.Entities namespace xAiModels.Interfaces.Entities
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
using System; using System;
using xAiModels.Models.Entities;
using xDataService.Interfaces; using xDataService.Interfaces;
using xAiModels.Models.Entities;
namespace xAiModels.Interfaces.Entities namespace xAiModels.Interfaces.Entities
{ {
+200 -2
View File
@@ -1,8 +1,9 @@
using System; using System;
using System.Collections.Generic; using xModels.Dtos;
using System.Threading; using System.Threading;
using System.Threading.Tasks;
using xAiModels.Models.Dtos; using xAiModels.Models.Dtos;
using System.Threading.Tasks;
using System.Collections.Generic;
namespace xAiModels.Interfaces namespace xAiModels.Interfaces
{ {
@@ -11,18 +12,51 @@ namespace xAiModels.Interfaces
/// </summary> /// </summary>
public interface IXAiDataProvider public interface IXAiDataProvider
{ {
//
#region Getters ...
/// <summary>
/// Retrieve Specified Project ...
/// </summary>
/// <param name="id"></param>
/// <param name="fillConversations"></param>
/// <param name="fillConversationMessages"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
Task<XAiProjectDto> GetProject(
Guid id,
bool fillConversations = false,
bool fillConversationMessages = false,
CancellationToken cancellationToken = default
);
/// <summary>
/// Retrieve Specified Conversation ...
/// </summary>
/// <param name="id"></param>
/// <param name="fillMessages"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
Task<XAiConversationDto> GetConversation(
Guid id,
bool fillMessages = false,
CancellationToken cancellationToken = default
);
#endregion
// //
#region Loaders ... #region Loaders ...
/// <summary> /// <summary>
/// Load Projects List of Specified Owner ... /// Load Projects List of Specified Owner ...
/// </summary> /// </summary>
/// <param name="ownerId"></param> /// <param name="ownerId"></param>
/// <param name="connectionId"></param>
/// <param name="fillConversations"></param> /// <param name="fillConversations"></param>
/// <param name="fillConversationMessages"></param> /// <param name="fillConversationMessages"></param>
/// <param name="cancellationToken"></param> /// <param name="cancellationToken"></param>
/// <returns></returns> /// <returns></returns>
Task<IEnumerable<XAiProjectDto>> LoadProjects( Task<IEnumerable<XAiProjectDto>> LoadProjects(
string ownerId, string ownerId,
string connectionId = null,
bool fillConversations = false, bool fillConversations = false,
bool fillConversationMessages = false, bool fillConversationMessages = false,
CancellationToken cancellationToken = default CancellationToken cancellationToken = default
@@ -33,11 +67,13 @@ namespace xAiModels.Interfaces
/// </summary> /// </summary>
/// <param name="projectId"></param> /// <param name="projectId"></param>
/// <param name="fillMessages"></param> /// <param name="fillMessages"></param>
/// <param name="connectionId"></param>
/// <param name="cancellationToken"></param> /// <param name="cancellationToken"></param>
/// <returns></returns> /// <returns></returns>
Task<IEnumerable<XAiConversationDto>> LoadConversations( Task<IEnumerable<XAiConversationDto>> LoadConversations(
Guid projectId, Guid projectId,
bool fillMessages = false, bool fillMessages = false,
string connectionId = null,
CancellationToken cancellationToken = default CancellationToken cancellationToken = default
); );
@@ -53,6 +89,120 @@ namespace xAiModels.Interfaces
); );
#endregion #endregion
//
#region Enrichers ...
/// <summary>
/// Enrich Specified Item ...
/// </summary>
/// <param name="source"></param>
/// <param name="fillConversations"></param>
/// <param name="fillConversationMessages"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
Task<XAiProjectDto> Enrich(
XAiProjectDto source,
bool fillConversations = false,
bool fillConversationMessages = false,
CancellationToken cancellationToken = default
);
/// <summary>
/// Enrich Specified Items ...
/// </summary>
/// <param name="sources"></param>
/// <param name="fillConversations"></param>
/// <param name="fillConversationMessages"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
Task<IEnumerable<XAiProjectDto>> EnrichRange(
IEnumerable<XAiProjectDto> sources,
bool fillConversations = false,
bool fillConversationMessages = false,
CancellationToken cancellationToken = default
);
/// <summary>
/// Enrich Specified Item ...
/// </summary>
/// <param name="source"></param>
/// <param name="fillMessages"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
Task<XAiConversationDto> Enrich(
XAiConversationDto source,
bool fillMessages = false,
CancellationToken cancellationToken = default
);
/// <summary>
/// Enrich Specified Items ...
/// </summary>
/// <param name="sources"></param>
/// <param name="fillMessages"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
Task<IEnumerable<XAiConversationDto>> EnrichRange(
IEnumerable<XAiConversationDto> sources,
bool fillMessages = false,
CancellationToken cancellationToken = default
);
/// <summary>
/// Enrich Specified Item ...
/// </summary>
/// <param name="source"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
Task<XAiMessageDto> Enrich(
XAiMessageDto source,
CancellationToken cancellationToken = default
);
/// <summary>
/// Enrich Specified Items ...
/// </summary>
/// <param name="sources"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
Task<IEnumerable<XAiMessageDto>> EnrichRange(
IEnumerable<XAiMessageDto> sources,
CancellationToken cancellationToken = default
);
#endregion
//
#region Defaults ...
/// <summary>
/// Retrieve Default Project of Specified Owner ...
/// Create it if not Handled ...
/// </summary>
/// <param name="ownerId"></param>
/// <param name="connectionId"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
Task<XAiProjectDto> GetDefaultProject(
string ownerId,
string connectionId = null,
CancellationToken cancellationToken = default
);
/// <summary>
/// Retrieve Default Conversation of Specified Owner ...
/// Create it if not Handled ...
/// </summary>
/// <param name="ownerId"></param>
/// <param name="projectId"></param>
/// <param name="connectionId"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
Task<XAiConversationDto> GetDefaultConversation(
string ownerId,
Guid projectId,
string connectionId = null,
CancellationToken cancellationToken = default
);
#endregion
// //
#region Creator/Adders ... #region Creator/Adders ...
/// <summary> /// <summary>
@@ -73,12 +223,14 @@ namespace xAiModels.Interfaces
/// <summary> /// <summary>
/// Create Conversation ... /// Create Conversation ...
/// </summary> /// </summary>
/// <param name="ownerId"></param>
/// <param name="projectId"></param> /// <param name="projectId"></param>
/// <param name="item"></param> /// <param name="item"></param>
/// <param name="connectionId"></param> /// <param name="connectionId"></param>
/// <param name="cancellationToken"></param> /// <param name="cancellationToken"></param>
/// <returns></returns> /// <returns></returns>
Task<XAiConversationDto> CreateConversation( Task<XAiConversationDto> CreateConversation(
string ownerId,
Guid projectId, Guid projectId,
XAiConversationDto item = null, XAiConversationDto item = null,
string connectionId = null, string connectionId = null,
@@ -100,5 +252,51 @@ namespace xAiModels.Interfaces
CancellationToken cancellationToken = default CancellationToken cancellationToken = default
); );
#endregion #endregion
//
#region Query ...
/// <summary>
/// Query Projects ...
/// </summary>
/// <param name="ownerId"></param>
/// <param name="query"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
Task<XQueryResult<XAiProjectDto>> QueryProjects(
string ownerId,
XQuery query,
CancellationToken cancellationToken = default
);
/// <summary>
/// Query Conversations ...
/// </summary>
/// <param name="ownerId"></param>
/// <param name="projectId"></param>
/// <param name="query"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
Task<XQueryResult<XAiConversationDto>> QueryConversations(
string ownerId,
Guid projectId,
XQuery query,
CancellationToken cancellationToken = default
);
/// <summary>
/// Query Messages ...
/// </summary>
/// <param name="ownerId"></param>
/// <param name="conversationId"></param>
/// <param name="query"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
Task<XQueryResult<XAiMessageDto>> QueryMessages(
string ownerId,
Guid conversationId,
XQuery query,
CancellationToken cancellationToken = default
);
#endregion
} }
} }
+1 -1
View File
@@ -1,7 +1,7 @@
using System; using System;
using System.Collections.Generic;
using xModels.Base; using xModels.Base;
using xModels.Dtos; using xModels.Dtos;
using System.Collections.Generic;
namespace xAiModels.Models.Dtos namespace xAiModels.Models.Dtos
{ {
+5 -5
View File
@@ -1,10 +1,10 @@
using System; using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using xAiModels.Constants;
using xCommons.Extensions;
using xModels.Base; using xModels.Base;
using xModels.Dtos; using xModels.Dtos;
using xAiModels.Constants;
using xCommons.Extensions;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace xAiModels.Models.Dtos namespace xAiModels.Models.Dtos
{ {
@@ -65,7 +65,7 @@ namespace xAiModels.Models.Dtos
/// <summary> /// <summary>
/// Meta Data of MEssage in Json ... /// Meta Data of MEssage in Json ...
/// </summary> /// </summary>
public string MeatDatas public string MetaDatas
{ {
// //
get => _metadata; get => _metadata;
+1 -1
View File
@@ -1,7 +1,7 @@
using System; using System;
using System.Collections.Generic;
using xModels.Base; using xModels.Base;
using xModels.Dtos; using xModels.Dtos;
using System.Collections.Generic;
namespace xAiModels.Models.Dtos namespace xAiModels.Models.Dtos
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
using System; using System;
using System.ComponentModel.DataAnnotations;
using xModels.Base; using xModels.Base;
using System.ComponentModel.DataAnnotations;
namespace xAiModels.Models.Entities namespace xAiModels.Models.Entities
{ {
+61
View File
@@ -0,0 +1,61 @@
using System;
using System.ComponentModel.DataAnnotations;
using xModels.Base;
namespace xAiModels.Models.Entities
{
/// <summary>
/// Represents an embedd document in the AI system.
/// </summary>
public class XAiDocument : XBaseGuidIDEntity
{
/// <summary>
/// User Identifier ...
/// </summary>
/// <value></value>
[Required]
[StringLength(255)]
public string OwnerId { get; set; }
/// <summary>
/// Title of Document ...
/// </summary>
[StringLength(255)]
public string Title { get; set; }
/// <summary>
/// Content of Document ...
/// </summary>
public string Content { get; set; }
/// <summary>
/// Hash of the Document Content ...
/// </summary>
public string ContentHash { get; set; } = string.Empty;
/// <summary>
/// Embedding Model Identifier ...
/// </summary>
public string EmbeddingModel { get; set; } = string.Empty;
/// <summary>
/// Dimensions of the Embedding ...
/// </summary>
public int Dimensions { get; set; }
/// <summary>
/// Vector representation of the Document ...
/// </summary>
public byte[] Vector { get; set; } = [];
/// <summary>
/// Created Time ...
/// </summary>
public DateTime CreatedOn { get; set; }
/// <summary>
/// Updated Time ...
/// </summary>
public DateTime UpdatedAt { get; set; }
}
}
+4 -4
View File
@@ -1,10 +1,10 @@
using System; using System;
using xModels.Base;
using xAiModels.Constants;
using xCommons.Extensions;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using xAiModels.Constants;
using xCommons.Extensions;
using xModels.Base;
namespace xAiModels.Models.Entities namespace xAiModels.Models.Entities
{ {
@@ -61,7 +61,7 @@ namespace xAiModels.Models.Entities
/// <summary> /// <summary>
/// Meta Data of MEssage in Json ... /// Meta Data of MEssage in Json ...
/// </summary> /// </summary>
public string MeatDatas public string MetaDatas
{ {
// //
get => _metadata; get => _metadata;
+1 -1
View File
@@ -1,6 +1,6 @@
using System; using System;
using System.ComponentModel.DataAnnotations;
using xModels.Base; using xModels.Base;
using System.ComponentModel.DataAnnotations;
namespace xAiModels.Models.Entities namespace xAiModels.Models.Entities
{ {
+49
View File
@@ -0,0 +1,49 @@
namespace xAiModels.Models
{
/// <summary>
/// Describe Specified Prompt ...
/// </summary>
public class XAiPromptDescriptor
{
/// <summary>
/// Prompt Name ...
/// </summary>
public string Name { get; set; }
/// <summary>
/// Prompt Template ...
/// </summary>
public string Template { get; set; }
/// <summary>
/// Prompt Description ...
/// </summary>
public string Description { get; set; }
/// <summary>
/// Prompt Template Params ...
/// </summary>
public XAiPromptParam[] Params { get; set; } = [];
}
/// <summary>
/// Specified a Prompt Param ...
/// </summary>
public class XAiPromptParam
{
/// <summary>
/// Param Name ...
/// </summary>
public string Name { get; set; }
/// <summary>
/// Param Identifier ...
/// </summary>
public string Param { get; set; }
/// <summary>
/// Parma Description ...
/// </summary>
public string Description { get; set; }
}
}
+16
View File
@@ -0,0 +1,16 @@
using System;
using xModels.Base;
using xAiModels.Constants;
namespace xAiModels.Models
{
public class XAiResonseMessage : XBaseDto
{
public long Sequence { get; set; }
public Guid RespondTo { get; set; }
public string OwnerId { get; set; }
public string Content { get; set; }
public XAiChatRole Role { get; set; }
public DateTime RespondedOn { get; set; }
}
}
+25
View File
@@ -0,0 +1,25 @@
using System;
namespace xAiModels.Models
{
/// <summary>
/// /Request for a Response in Controllers ...
/// </summary>
public class XAiResponseRequest
{
/// <summary>
/// Prompt Text ...
/// </summary>
public string Prompt { get; set; }
/// <summary>
/// Specified Project Id ...
/// </summary>
public Guid ProjectId { get; set; }
/// <summary>
/// Specified Conversation Id ...
/// </summary>
public Guid ConversationId { get; set; }
}
}
+71
View File
@@ -0,0 +1,71 @@
using System.Collections.Generic;
namespace xAiModels.Models
{
/// <summary>
/// Holds File Extraction Result ...
/// </summary>
public class XFileExtractionResult
{
/// <summary>
/// Extracted String Content ...
/// </summary>
public string Text { get; set; } = string.Empty;
/// <summary>
/// Extracted Images for Vision Model ...
/// </summary>
public IList<XExtractedImage> Images { get; set; } = [];
/// <summary>
/// Extracted Content from Audio File ...
/// </summary>
public string AudioTranscript { get; set; } = string.Empty;
/// <summary>
/// Main File Name ...
/// </summary>
public string FileName { get; set; }
/// <summary>
/// Main File MIME Type ...
/// </summary>
public string MimeType { get; set; }
/// <summary>
/// Specified Fallback done using Images or not ...
/// </summary>
public bool UsedImageFallback { get; set; } = false;
/// <summary>
/// Error Message ...
/// </summary>
public string ErrorMessage { get; set; }
}
/// <summary>
/// Extracted Image ...
/// </summary>
public class XExtractedImage
{
/// <summary>
/// Content as Byte ...
/// </summary>
public byte[] Bytes { get; set; }
/// <summary>
/// MIME Type of Image ...
/// </summary>
public string MimeType { get; set; } = "image/png";
/// <summary>
/// for PDF Files ...
/// </summary>
public int? PageNumber { get; set; }
/// <summary>
/// Describe Image ...
/// </summary>
public string Description { get; set; }
}
}
+4 -4
View File
@@ -1,9 +1,9 @@
using System; using System;
using Microsoft.Extensions.Logging;
using xAiModels.Interfaces.Dtos;
using xAiModels.Models.Dtos;
using xAiModels.Models.Entities;
using xPushService.Base; using xPushService.Base;
using xAiModels.Models.Dtos;
using xAiModels.Interfaces.Dtos;
using xAiModels.Models.Entities;
using Microsoft.Extensions.Logging;
namespace xAiModels.Providers.Dtos namespace xAiModels.Providers.Dtos
{ {
@@ -1,19 +1,19 @@
using System; using System;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using xModels.Dtos;
using System.Threading; using System.Threading;
using xCommons.Extensions;
using xAiModels.Interfaces;
using xAiModels.Models.Dtos;
using System.Threading.Tasks; using System.Threading.Tasks;
using xDataService.Providers;
using xAiModels.Configurations; using xAiModels.Configurations;
using xAiModels.Interfaces.Dtos; using xAiModels.Interfaces.Dtos;
using xAiModels.Interfaces.Entities;
using xAiModels.Models.Dtos;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xCommons.Extensions; using System.Collections.Generic;
using xDataService.Providers;
using xIdentityService.Interfaces; using xIdentityService.Interfaces;
using xIdentityService.Extensions; using xIdentityService.Extensions;
using xModels.Dtos; using xAiModels.Interfaces.Entities;
using xAiModels.Interfaces;
namespace xAiModels.Providers.Dtos namespace xAiModels.Providers.Dtos
{ {
@@ -1,11 +1,11 @@
using System; using System;
using Microsoft.AspNetCore.SignalR; using xPushService.Base;
using xAiModels.Interfaces.Dtos;
using xAiModels.Models.Dtos; using xAiModels.Models.Dtos;
using xAiModels.Interfaces.Dtos;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xDataService.Configuration; using xDataService.Configuration;
using xIdentityService.Interfaces; using xIdentityService.Interfaces;
using xPushService.Base; using Microsoft.AspNetCore.SignalR;
namespace xAiModels.Providers.Dtos namespace xAiModels.Providers.Dtos
{ {
+4 -4
View File
@@ -1,9 +1,9 @@
using System; using System;
using Microsoft.Extensions.Logging;
using xAiModels.Interfaces.Dtos;
using xAiModels.Models.Dtos;
using xAiModels.Models.Entities;
using xPushService.Base; using xPushService.Base;
using xAiModels.Models.Dtos;
using xAiModels.Interfaces.Dtos;
using xAiModels.Models.Entities;
using Microsoft.Extensions.Logging;
namespace xAiModels.Providers.Dtos namespace xAiModels.Providers.Dtos
{ {
@@ -1,19 +1,19 @@
using System; using System;
using System.Collections.Generic; using System.Linq;
using xModels.Dtos;
using System.Threading; using System.Threading;
using xCommons.Extensions;
using xAiModels.Interfaces;
using xAiModels.Models.Dtos;
using System.Threading.Tasks; using System.Threading.Tasks;
using xDataService.Providers;
using xAiModels.Configurations; using xAiModels.Configurations;
using xAiModels.Interfaces.Dtos; using xAiModels.Interfaces.Dtos;
using xAiModels.Interfaces.Entities;
using xAiModels.Models.Dtos;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xCommons.Extensions; using System.Collections.Generic;
using xDataService.Providers;
using xIdentityService.Interfaces; using xIdentityService.Interfaces;
using xModels.Dtos;
using xIdentityService.Extensions; using xIdentityService.Extensions;
using xAiModels.Interfaces; using xAiModels.Interfaces.Entities;
using System.Linq;
namespace xAiModels.Providers.Dtos namespace xAiModels.Providers.Dtos
{ {
+3 -3
View File
@@ -1,11 +1,11 @@
using System; using System;
using Microsoft.AspNetCore.SignalR; using xPushService.Base;
using xAiModels.Interfaces.Dtos;
using xAiModels.Models.Dtos; using xAiModels.Models.Dtos;
using xAiModels.Interfaces.Dtos;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xDataService.Configuration; using xDataService.Configuration;
using xIdentityService.Interfaces; using xIdentityService.Interfaces;
using xPushService.Base; using Microsoft.AspNetCore.SignalR;
namespace xAiModels.Providers.Dtos namespace xAiModels.Providers.Dtos
{ {
+4 -4
View File
@@ -1,9 +1,9 @@
using System; using System;
using Microsoft.Extensions.Logging;
using xAiModels.Interfaces.Dtos;
using xAiModels.Models.Dtos;
using xAiModels.Models.Entities;
using xPushService.Base; using xPushService.Base;
using xAiModels.Models.Dtos;
using xAiModels.Interfaces.Dtos;
using xAiModels.Models.Entities;
using Microsoft.Extensions.Logging;
namespace xAiModels.Providers.Dtos namespace xAiModels.Providers.Dtos
{ {
@@ -1,19 +1,19 @@
using System; using System;
using System.Collections.Generic; using System.Linq;
using xModels.Dtos;
using System.Threading; using System.Threading;
using xCommons.Extensions;
using xAiModels.Interfaces;
using xAiModels.Models.Dtos;
using System.Threading.Tasks; using System.Threading.Tasks;
using xDataService.Providers;
using xAiModels.Configurations; using xAiModels.Configurations;
using xAiModels.Interfaces.Dtos; using xAiModels.Interfaces.Dtos;
using xAiModels.Interfaces.Entities;
using xAiModels.Models.Dtos;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xCommons.Extensions; using System.Collections.Generic;
using xDataService.Providers;
using xIdentityService.Interfaces; using xIdentityService.Interfaces;
using xIdentityService.Extensions; using xIdentityService.Extensions;
using xModels.Dtos; using xAiModels.Interfaces.Entities;
using xAiModels.Interfaces;
using System.Linq;
namespace xAiModels.Providers.Dtos namespace xAiModels.Providers.Dtos
{ {
+3 -3
View File
@@ -1,11 +1,11 @@
using System; using System;
using Microsoft.AspNetCore.SignalR; using xPushService.Base;
using xAiModels.Interfaces.Dtos;
using xAiModels.Models.Dtos; using xAiModels.Models.Dtos;
using xAiModels.Interfaces.Dtos;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xDataService.Configuration; using xDataService.Configuration;
using xIdentityService.Interfaces; using xIdentityService.Interfaces;
using xPushService.Base; using Microsoft.AspNetCore.SignalR;
namespace xAiModels.Providers.Dtos namespace xAiModels.Providers.Dtos
{ {
+10 -8
View File
@@ -1,16 +1,16 @@
using System.Collections.Generic;
using System.Linq; using System.Linq;
using xModels.Dtos;
using System.Threading; using System.Threading;
using System.Threading.Tasks;
using xAiModels.Interfaces;
using xAiModels.Interfaces.Enrichers;
using xAiModels.Interfaces.Entities;
using xAiModels.Models.Dtos;
using xAiModels.Models.Entities;
using xCommons.Extensions; using xCommons.Extensions;
using xAiModels.Interfaces;
using xAiModels.Models.Dtos;
using System.Threading.Tasks;
using xAiModels.Models.Entities;
using System.Collections.Generic;
using xIdentityService.Interfaces; using xIdentityService.Interfaces;
using xIdentityService.Extensions; using xIdentityService.Extensions;
using xModels.Dtos; using xAiModels.Interfaces.Entities;
using xAiModels.Interfaces.Enrichers;
namespace xAiModels.Providers.Enrichers namespace xAiModels.Providers.Enrichers
{ {
@@ -134,7 +134,9 @@ namespace xAiModels.Providers.Enrichers
result.Owner = owner; result.Owner = owner;
result.TitleResource = titleResource; result.TitleResource = titleResource;
result.ProjectTitleResource = projectTitleResource; result.ProjectTitleResource = projectTitleResource;
result.ProjectTitle = projectTitleResource.Resource;
result.ProjectDescriptionResource = projectDescriptionResource; result.ProjectDescriptionResource = projectDescriptionResource;
result.ProjectDescription = projectDescriptionResource.Resource;
// //
return result; return result;
+8 -10
View File
@@ -1,17 +1,15 @@
using System; using System.Linq;
using System.Collections.Generic; using xModels.Dtos;
using System.Threading; using System.Threading;
using System.Threading.Tasks;
using xAiModels.Interfaces.Enrichers;
using xAiModels.Models.Dtos;
using xCommons.Extensions; using xCommons.Extensions;
using xAiModels.Interfaces;
using xAiModels.Models.Dtos;
using System.Threading.Tasks;
using xAiModels.Models.Entities;
using System.Collections.Generic;
using xIdentityService.Interfaces; using xIdentityService.Interfaces;
using xIdentityService.Extensions; using xIdentityService.Extensions;
using xModels.Dtos; using xAiModels.Interfaces.Enrichers;
using System.Linq;
using xAiModels.Interfaces.Dtos;
using xAiModels.Models.Entities;
using xAiModels.Interfaces;
namespace xAiModels.Providers.Enrichers namespace xAiModels.Providers.Enrichers
{ {
+8 -8
View File
@@ -1,16 +1,16 @@
using System.Collections.Generic;
using System.Linq; using System.Linq;
using xModels.Dtos;
using System.Threading; using System.Threading;
using System.Threading.Tasks;
using xAiModels.Interfaces.Enrichers;
using xAiModels.Interfaces.Entities;
using xAiModels.Models.Dtos;
using xAiModels.Models.Entities;
using xCommons.Extensions; using xCommons.Extensions;
using xAiModels.Interfaces;
using xAiModels.Models.Dtos;
using System.Threading.Tasks;
using xAiModels.Models.Entities;
using System.Collections.Generic;
using xIdentityService.Interfaces; using xIdentityService.Interfaces;
using xIdentityService.Extensions; using xIdentityService.Extensions;
using xModels.Dtos; using xAiModels.Interfaces.Entities;
using xAiModels.Interfaces; using xAiModels.Interfaces.Enrichers;
namespace xAiModels.Providers.Enrichers namespace xAiModels.Providers.Enrichers
{ {
@@ -1,10 +1,10 @@
using System; using System;
using xAiModels.Interfaces.Entities; using xDataService.Db;
using xDataService.Providers;
using xDataService.Interfaces;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xDataService.Configuration; using xDataService.Configuration;
using xDataService.Db; using xAiModels.Interfaces.Entities;
using xDataService.Interfaces;
using xDataService.Providers;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
@@ -1,8 +1,8 @@
using System; using System;
using xPushService.Base;
using xAiModels.Models.Entities;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using xAiModels.Interfaces.Entities; using xAiModels.Interfaces.Entities;
using xAiModels.Models.Entities;
using xPushService.Base;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
@@ -1,8 +1,8 @@
using System; using System;
using xAiModels.Interfaces.Entities; using xDataService.Providers;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xDataService.Configuration; using xDataService.Configuration;
using xDataService.Providers; using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
@@ -1,6 +1,6 @@
using xAiModels.Interfaces.Entities;
using xAiModels.Models.Entities;
using xDataService.Providers; using xDataService.Providers;
using xAiModels.Models.Entities;
using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
@@ -1,8 +1,8 @@
using System; using System;
using xAiModels.Interfaces.Entities; using xDataService.Providers;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xDataService.Configuration; using xDataService.Configuration;
using xDataService.Providers; using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
@@ -1,6 +1,6 @@
using xAiModels.Interfaces.Entities;
using xAiModels.Models.Entities;
using xDataService.Providers; using xDataService.Providers;
using xAiModels.Models.Entities;
using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
@@ -1,10 +1,10 @@
using System; using System;
using Microsoft.AspNetCore.SignalR; using xPushService.Base;
using xAiModels.Interfaces.Entities;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xDataService.Configuration; using xDataService.Configuration;
using xIdentityService.Interfaces; using xIdentityService.Interfaces;
using xPushService.Base; using Microsoft.AspNetCore.SignalR;
using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
@@ -1,8 +1,8 @@
using System; using System;
using xAiModels.Interfaces.Entities; using xDataService.Providers;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xDataService.Configuration; using xDataService.Configuration;
using xDataService.Providers; using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
+4 -4
View File
@@ -1,10 +1,10 @@
using System; using System;
using xAiModels.Interfaces.Entities; using xDataService.Db;
using xDataService.Providers;
using xDataService.Interfaces;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xDataService.Configuration; using xDataService.Configuration;
using xDataService.Db; using xAiModels.Interfaces.Entities;
using xDataService.Interfaces;
using xDataService.Providers;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
+2 -2
View File
@@ -1,8 +1,8 @@
using System; using System;
using xPushService.Base;
using xAiModels.Models.Entities;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using xAiModels.Interfaces.Entities; using xAiModels.Interfaces.Entities;
using xAiModels.Models.Entities;
using xPushService.Base;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
@@ -1,8 +1,8 @@
using System; using System;
using xAiModels.Interfaces.Entities; using xDataService.Providers;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xDataService.Configuration; using xDataService.Configuration;
using xDataService.Providers; using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
+2 -2
View File
@@ -1,6 +1,6 @@
using xAiModels.Interfaces.Entities;
using xAiModels.Models.Entities;
using xDataService.Providers; using xDataService.Providers;
using xAiModels.Models.Entities;
using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
@@ -1,8 +1,8 @@
using System; using System;
using xAiModels.Interfaces.Entities; using xDataService.Providers;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xDataService.Configuration; using xDataService.Configuration;
using xDataService.Providers; using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
@@ -1,6 +1,6 @@
using xAiModels.Interfaces.Entities;
using xAiModels.Models.Entities;
using xDataService.Providers; using xDataService.Providers;
using xAiModels.Models.Entities;
using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
@@ -1,10 +1,10 @@
using System; using System;
using Microsoft.AspNetCore.SignalR; using xPushService.Base;
using xAiModels.Interfaces.Entities;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xDataService.Configuration; using xDataService.Configuration;
using xIdentityService.Interfaces; using xIdentityService.Interfaces;
using xPushService.Base; using Microsoft.AspNetCore.SignalR;
using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
+2 -2
View File
@@ -1,8 +1,8 @@
using System; using System;
using xAiModels.Interfaces.Entities; using xDataService.Providers;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xDataService.Configuration; using xDataService.Configuration;
using xDataService.Providers; using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
+4 -4
View File
@@ -1,10 +1,10 @@
using System; using System;
using xAiModels.Interfaces.Entities; using xDataService.Db;
using xDataService.Providers;
using xDataService.Interfaces;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xDataService.Configuration; using xDataService.Configuration;
using xDataService.Db; using xAiModels.Interfaces.Entities;
using xDataService.Interfaces;
using xDataService.Providers;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
+2 -2
View File
@@ -1,8 +1,8 @@
using System; using System;
using xPushService.Base;
using xAiModels.Models.Entities;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using xAiModels.Interfaces.Entities; using xAiModels.Interfaces.Entities;
using xAiModels.Models.Entities;
using xPushService.Base;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
@@ -1,8 +1,8 @@
using System; using System;
using xAiModels.Interfaces.Entities; using xDataService.Providers;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xDataService.Configuration; using xDataService.Configuration;
using xDataService.Providers; using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
+2 -2
View File
@@ -1,6 +1,6 @@
using xAiModels.Interfaces.Entities;
using xAiModels.Models.Entities;
using xDataService.Providers; using xDataService.Providers;
using xAiModels.Models.Entities;
using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
@@ -1,8 +1,8 @@
using System; using System;
using xAiModels.Interfaces.Entities; using xDataService.Providers;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xDataService.Configuration; using xDataService.Configuration;
using xDataService.Providers; using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
@@ -1,6 +1,6 @@
using xAiModels.Interfaces.Entities;
using xAiModels.Models.Entities;
using xDataService.Providers; using xDataService.Providers;
using xAiModels.Models.Entities;
using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
@@ -1,10 +1,10 @@
using System; using System;
using Microsoft.AspNetCore.SignalR; using xPushService.Base;
using xAiModels.Interfaces.Entities;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xDataService.Configuration; using xDataService.Configuration;
using xIdentityService.Interfaces; using xIdentityService.Interfaces;
using xPushService.Base; using Microsoft.AspNetCore.SignalR;
using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
+2 -2
View File
@@ -1,8 +1,8 @@
using System; using System;
using xAiModels.Interfaces.Entities; using xDataService.Providers;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xDataService.Configuration; using xDataService.Configuration;
using xDataService.Providers; using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.Entities namespace xAiModels.Providers.Entities
{ {
@@ -1,8 +1,8 @@
using System; using System;
using xAiModels.Constants; using xAiModels.Constants;
using xAiModels.Interfaces.Entities;
using xAiModels.Models.Entities;
using xDataService.GraphQL; using xDataService.GraphQL;
using xAiModels.Models.Entities;
using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.GraphQL namespace xAiModels.Providers.GraphQL
{ {
@@ -1,9 +1,9 @@
using System; using System;
using GraphQL.Types; using GraphQL.Types;
using xAiModels.Interfaces.Entities; using xDataService.GraphQL;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xDataService.Configuration; using xDataService.Configuration;
using xDataService.GraphQL; using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.GraphQL namespace xAiModels.Providers.GraphQL
{ {
@@ -1,6 +1,6 @@
using System; using System;
using xAiModels.Models.Entities;
using xDataService.GraphQL; using xDataService.GraphQL;
using xAiModels.Models.Entities;
namespace xAiModels.Providers.GraphQL namespace xAiModels.Providers.GraphQL
{ {
@@ -1,8 +1,8 @@
using System; using System;
using xAiModels.Constants; using xAiModels.Constants;
using xAiModels.Interfaces.Entities;
using xAiModels.Models.Entities;
using xDataService.GraphQL; using xDataService.GraphQL;
using xAiModels.Models.Entities;
using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.GraphQL namespace xAiModels.Providers.GraphQL
{ {
+2 -2
View File
@@ -1,9 +1,9 @@
using System; using System;
using GraphQL.Types; using GraphQL.Types;
using xAiModels.Interfaces.Entities; using xDataService.GraphQL;
using xAiModels.Models.Entities; using xAiModels.Models.Entities;
using xDataService.Configuration; using xDataService.Configuration;
using xDataService.GraphQL; using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.GraphQL namespace xAiModels.Providers.GraphQL
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
using System; using System;
using xAiModels.Models.Entities;
using xDataService.GraphQL; using xDataService.GraphQL;
using xAiModels.Models.Entities;
namespace xAiModels.Providers.GraphQL namespace xAiModels.Providers.GraphQL
{ {
@@ -1,8 +1,8 @@
using System; using System;
using xAiModels.Constants; using xAiModels.Constants;
using xAiModels.Interfaces.Entities;
using xAiModels.Models.Entities;
using xDataService.GraphQL; using xDataService.GraphQL;
using xAiModels.Models.Entities;
using xAiModels.Interfaces.Entities;
namespace xAiModels.Providers.GraphQL namespace xAiModels.Providers.GraphQL
{ {

Some files were not shown because too many files have changed in this diff Show More