- Agent: Web-Suche als Dropdown (Deaktiviert / 2025 / 2026) statt bool - AnthropicService: web_search Tool dynamisch nach Version einfügen - Stream: server_tool_use + web_search_tool_result Events verarbeiten - Chat-Frontend: web_search_start/end Events mit Suchindikator - Dashboard: Badge zeigt Web-Suche mit Jahresversion - UserRecord: IsAdmin Feld, DB-Migration is_admin Spalte - AuthMiddleware: IsAdmin aus DB laden und in Context setzen - BackupEndpoint: Admin-Check (403 für Nicht-Admins) - AuthEndpoint: isAdmin in Login/Me Response - Frontend: Backup-Section nur für Admins sichtbar - Haiku 4.5 als Model-Option (Agent-Dropdown + ChatEndpoint) - TODO: Cronjobs, Haiku ergänzt
25 lines
993 B
C#
25 lines
993 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, haiku
|
|
public string ToolChoice { get; set; } // "any" oder "auto"
|
|
public string CustomCommands { get; set; }
|
|
public string AutoCommit { get; set; } = ""; // "", "mention", "forbid"
|
|
public bool UseSoul { get; set; } = true;
|
|
public bool UseIdentity { get; set; } = true;
|
|
public bool UseUserInfo { get; set; } = true;
|
|
public bool UseMemory { get; set; } = true;
|
|
public bool UseWebSearch { get; set; }
|
|
public string WebSearchVersion { get; set; } = "";
|
|
public string UserId { get; set; }
|
|
public bool IsDeleted { get; set; }
|
|
public string CreatedAt { get; set; }
|
|
public string UpdatedAt { get; set; }
|
|
}
|