Files
2026-10-12 01:14:13 +02:00

24 lines
568 B
C#

using System;
using Newtonsoft.Json;
namespace PaperlessAI.Models.LMStudio;
public class LmStudioLlmResponse
{
[JsonProperty("document_Id")]
public long DocumentId { get; set; } = -1;
[JsonProperty("success")]
public bool Success { get; set; } = false;
[JsonProperty("message")]
public string Message { get; set; } = string.Empty;
public override string ToString()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
public bool IsValid => !string.IsNullOrWhiteSpace(Message) && DocumentId != -1;
}