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:
25
ChatbotApi/Data/Models/SystemPrompt.cs
Normal file
25
ChatbotApi/Data/Models/SystemPrompt.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace ChatbotApi.Data.Models
|
||||
{
|
||||
[Table("SystemPrompts")]
|
||||
public class SystemPrompt
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
[MaxLength(100)]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public string Content { get; set; } = string.Empty;
|
||||
|
||||
public bool IsActive { get; set; }
|
||||
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
|
||||
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user