diff --git a/Providers/XAIServiceBase.cs b/Providers/XAIServiceBase.cs index 0389a9d..93fadc8 100644 --- a/Providers/XAIServiceBase.cs +++ b/Providers/XAIServiceBase.cs @@ -20,6 +20,10 @@ using System.Collections.Generic; using Microsoft.Extensions.Logging; using System.ClientModel.Primitives; using System.Runtime.CompilerServices; +using xAiModels.Models.Dtos; +using xIdentityModels.Models; +using System.Linq; +using xAiService.Extensions; namespace xAiApi.Providers { @@ -333,6 +337,35 @@ namespace xAiApi.Providers } #endregion + // + #region Data Provider Based Actions ... + public async Task> LoadProjects( + string ownerId, + CancellationToken cancellationToken = default + ) + { + // + // Validate Args ... + if (ownerId.IsNullOrEmpty()) + { + XException.InvalidArgs.Throw(); + } + + // + var result = await dataProvider.LoadProjects( + ownerId: ownerId, + cancellationToken: cancellationToken + ); + + // + // Here we have to fill Conversations of Default Project ... + + + // + return result; + } + #endregion + /// /// Base Dispose Action ... ///