Snapshot the agent's effort onto the chain (like model) so it survives reload, archive and shared chains, then show it in the chain-end meta line. - ChainRecord.Effort + chains.effort column (TryAddColumn migration). - CreateChain INSERT carries the value. - ChatService snapshots agent.Effort at chain creation, but only for Claude models – OpenAI providers store '' so there is no misleading badge. - Anthropic streaming + CLI done-events include effort for the live path. - chat.js buildMetaBadges renders "Effort: <level>" after the model badge, only when a value is set. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
26 lines
891 B
C#
26 lines
891 B
C#
namespace Gott.Models;
|
|
|
|
public class ChainRecord
|
|
{
|
|
public long Id { get; set; }
|
|
public string ChainId { get; set; }
|
|
public string SessionId { get; set; }
|
|
public string AgentId { get; set; }
|
|
public string Model { get; set; }
|
|
public string SystemPrompt { get; set; }
|
|
public long InputTokens { get; set; }
|
|
public long OutputTokens { get; set; }
|
|
public long CacheCreationTokens { get; set; }
|
|
public long CacheReadTokens { get; set; }
|
|
public int Iterations { get; set; }
|
|
public string StopReason { get; set; }
|
|
public long DurationMs { get; set; }
|
|
public string ToolChoice { get; set; }
|
|
public string ToolNames { get; set; }
|
|
public string ArchiveId { get; set; }
|
|
public string StreamErrorInfo { get; set; }
|
|
public bool PlanMode { get; set; }
|
|
public string Effort { get; set; }
|
|
public string CreatedAt { get; set; }
|
|
}
|