24 lines
568 B
C#
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;
|
|
}
|