Files
gott/Models/ChainRecord.cs
T
Meleki 449c872296 Agents: CRUD, DB table, session binding, replace model picker
- agents table with name, avatar, description, model, persona, instructions, soft-delete
- AgentEndpoint (GET/POST/PUT/DELETE /api/agents)
- sessions + chains now reference agent_id
- ChatEndpoint resolves agent from session (no agent = no chat)
- system prompt built from agent persona + instructions
- frontend: agent editor with avatar upload, agent cards on dashboard
- session: agent dropdown replaces model picker, choice persisted
2026-02-26 20:59:19 +01:00

19 lines
584 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 int Iterations { get; set; }
public string StopReason { get; set; }
public long DurationMs { get; set; }
public string ArchiveId { get; set; }
public string CreatedAt { get; set; }
}