Files
gott/Models/AgentRecord.cs
T
MelekiandClaude Fable 5 81892d6e65 Agent: Max Output Tokens + Thinking deaktivieren einstellbar
Zwei neue Agent-Einstellungen (Frontend, DB-Migration additiv):
- MaxOutputTokens: hartes Ausgabelimit. CLI: CLAUDE_CODE_MAX_OUTPUT_TOKENS,
  API: max_tokens (statt hart 16384). 0 = aus.
- DisableThinking: CLI: CLAUDE_CODE_DISABLE_THINKING=1 + MAX_THINKING_TOKENS=0;
  entfernt CLAUDE_CODE_EFFORT_LEVEL (Explizit-Aus schlaegt Effort).
  API-Pfad ohne Aequivalent (Hint im UI).

Die einzigen zwei Parameter, die z.ai/GLM nachweislich honoriert
(Sampling-Parameter wie temperature/top_p werden dort still verworfen).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-03 17:54:11 +02:00

54 lines
2.6 KiB
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 (512px)
public string AvatarSmall { get; set; } // base64 data url (256px, für Listen)
public string Description { get; set; }
public string Model { get; set; }
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 UseAutoContext { get; set; } = true;
public bool UseGitHubSearch { get; set; }
public bool UseSerperSearch { get; set; }
public bool UseWebSearch { get; set; }
public string WebSearchVersion { get; set; } = "";
public bool AllowUserChoice { get; set; } = true;
public string TaskInstruction { get; set; }
/// <summary>
/// Reasoning-Effort-Level für Claude (Opus 4.5+, Sonnet 4.6+).
/// Werte: "" (= high, weglassen), "low", "medium", "high", "xhigh" (Opus 4.7+), "max" (Opus 4.6+, Sonnet 4.6).
/// API-Pfad: wird als output_config.effort gesendet. CLI-Pfad: wird via CLAUDE_CODE_EFFORT_LEVEL gesetzt.
/// Bei OpenAI-Providern (MiniMax/Nvidia/etc.) wird das Feld stillschweigend ignoriert.
/// </summary>
public string Effort { get; set; } = "";
/// <summary>
/// Hartes Limit für die Ausgabelänge (Tokens). 0 = aus (Modell-Default).
/// CLI-Pfad: wird als CLAUDE_CODE_MAX_OUTPUT_TOKENS gesetzt. API-Pfad: als max_tokens gesendet.
/// Wirkt auch bei z.ai/GLM (dort einer der wenigen Parameter, die tatsächlich honoriert werden).
/// </summary>
public int MaxOutputTokens { get; set; }
/// <summary>
/// Reasoning/Thinking komplett abschalten (Modell spielt/antwortet statt zu analysieren).
/// CLI-Pfad: CLAUDE_CODE_DISABLE_THINKING=1 + MAX_THINKING_TOKENS=0.
/// API-Pfad: kein Äquivalent (dort steuert Effort) → wird still ignoriert.
/// </summary>
public bool DisableThinking { get; set; }
public double AvatarScale { get; set; } = 1.0;
public double AvatarOffsetX { get; set; }
public double AvatarOffsetY { get; set; }
public string UserId { get; set; }
public bool IsPublic { get; set; }
public bool IsDeleted { get; set; }
public string CreatedAt { get; set; }
public string UpdatedAt { get; set; }
}