Files
gott/Models/AgentRecord.cs
T
Meleki e79a69a364 Custom Commands für Agents: gleiche Befehls-UI wie Sessions, im Chat werden Agent- und Session-Commands zusammengeführt
Backend:
- AgentRecord um CustomCommands-Feld erweitert
- DB-Migration: custom_commands Spalte für agents Tabelle
- Agent-CRUD (Create/Update) verarbeitet customCommands

Frontend:
- commands-ui.js: Shared Utility (createCommandRow, getCommandsFromUI, loadCommandsIntoUI) für Agent- und Session-Page
- Agent-Page: Benutzerdefinierte Befehle Sektion mit Typ-Dropdown
- Chat-Page: Lädt Agent-Commands + Session-Commands, zeigt beide mit Labels wenn beide vorhanden
- Session-Page: Refactored auf shared commands-ui.js Funktionen
- CSS: cmd-bar-label Styling für Agent:/Session: Trennung in der Command-Bar
2026-02-28 21:35:34 +01:00

19 lines
663 B
C#

namespace Gott.Models;
public class AgentRecord
{
public long Id { get; set; }
public string AgentId { get; set; }
public string Name { get; set; }
public string Avatar { get; set; } // base64 data url
public string Description { get; set; }
public string Model { get; set; } // sonnet, opus
public string Persona { get; set; }
public string Instructions { get; set; }
public string ToolChoice { get; set; } // "any" oder "auto"
public string CustomCommands { get; set; }
public bool IsDeleted { get; set; }
public string CreatedAt { get; set; }
public string UpdatedAt { get; set; }
}