Size: 778 B Modified: 25/06/2026 11:29 AM
using System.Text.Json.Serialization;

namespace KaiChat.Models;

public class ToolCallLog
{
    [JsonPropertyName("id")]
    public string Id { get; set; } = Guid.NewGuid().ToString("N")[..8];
    public string Method { get; set; } = "";
    public string Path { get; set; } = "";
    public string Body { get; set; } = "";
    public string Status { get; set; } = ""; // "success" or "error"
    public string Summary { get; set; } = ""; // human-readable one-liner
    public string? Result { get; set; } // tool execution output
    public DateTime Timestamp { get; set; } = DateTime.UtcNow;
    public string? ConversationId { get; set; }
    [JsonPropertyName("rerunOf")]
    public string? RerunOf { get; set; } // original log ID if this is a rerun
}
Offline