Feat: System Prompts

- Se añade un sistema de prompts de gerarquía máxima para molder el asistente.
- Se añade control del sistema de prompts mediante el panel de administración.
This commit is contained in:
2025-12-05 13:02:23 -03:00
parent 67e179441d
commit a87550b890
9 changed files with 883 additions and 8 deletions

View File

@@ -76,6 +76,37 @@ namespace ChatbotApi.Migrations
b.ToTable("ConversacionLogs");
});
modelBuilder.Entity("ChatbotApi.Data.Models.SystemPrompt", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("Content")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<DateTime>("CreatedAt")
.HasColumnType("datetime2");
b.Property<bool>("IsActive")
.HasColumnType("bit");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<DateTime>("UpdatedAt")
.HasColumnType("datetime2");
b.HasKey("Id");
b.ToTable("SystemPrompts");
});
modelBuilder.Entity("FuenteContexto", b =>
{
b.Property<int>("Id")