← Back to Files
ToolCallLog.cs
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
}