Multi-agent AI laboratory with ASP.NET Core 8.0 backend and Flutter frontend. Implements CQRS architecture, OpenAPI contract-first API design. BACKEND: Agent management, conversations, executions with PostgreSQL + Ollama FRONTEND: Cross-platform UI with strict typing and Result-based error handling Co-Authored-By: Jean-Philippe Brule <jp@svrnty.io>
25 lines
784 B
C#
25 lines
784 B
C#
using Codex.Dal.Services;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using OpenHarbor.CQRS.DynamicQuery.Abstractions;
|
|
using PoweredSoft.Data.Core;
|
|
using PoweredSoft.Module.Abstractions;
|
|
|
|
namespace Codex.Dal;
|
|
|
|
public class DalModule : IModule
|
|
{
|
|
public IServiceCollection ConfigureServices(IServiceCollection services)
|
|
{
|
|
services.AddSingleton<IAsyncQueryableHandlerService, InMemoryQueryableHandlerService>();
|
|
services.AddTransient(typeof(IQueryableProvider<>), typeof(DefaultQueryableProvider<>));
|
|
services.AddSingleton<IEncryptionService, AesEncryptionService>();
|
|
services.AddScoped<IOllamaService, OllamaService>();
|
|
|
|
// Register dynamic queries (paginated)
|
|
services.AddDynamicQueries();
|
|
|
|
return services;
|
|
}
|
|
}
|
|
|