35 lines
767 B
C#
35 lines
767 B
C#
using System;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace AxCopilot.Services;
|
|
|
|
public class MemoryEntry
|
|
{
|
|
[JsonPropertyName("id")]
|
|
public string Id { get; set; } = "";
|
|
|
|
[JsonPropertyName("type")]
|
|
public string Type { get; set; } = "fact";
|
|
|
|
[JsonPropertyName("content")]
|
|
public string Content { get; set; } = "";
|
|
|
|
[JsonPropertyName("source")]
|
|
public string Source { get; set; } = "";
|
|
|
|
[JsonPropertyName("createdAt")]
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
[JsonPropertyName("lastUsedAt")]
|
|
public DateTime LastUsedAt { get; set; }
|
|
|
|
[JsonPropertyName("useCount")]
|
|
public int UseCount { get; set; }
|
|
|
|
[JsonPropertyName("relevance")]
|
|
public double Relevance { get; set; }
|
|
|
|
[JsonPropertyName("workFolder")]
|
|
public string? WorkFolder { get; set; }
|
|
}
|