mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-06-07 05:16:27 +00:00
28 lines
642 B
C#
28 lines
642 B
C#
|
|
namespace AIStudio.Tools.Rust;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// The response of the Qdrant Edge information request.
|
||
|
|
/// </summary>
|
||
|
|
public readonly record struct QdrantEdgeInfo
|
||
|
|
{
|
||
|
|
public QdrantEdgeStatus Status { get; init; }
|
||
|
|
|
||
|
|
public bool IsAvailable { get; init; }
|
||
|
|
|
||
|
|
public string? UnavailableReason { get; init; }
|
||
|
|
|
||
|
|
public string Name { get; init; }
|
||
|
|
|
||
|
|
public string Version { get; init; }
|
||
|
|
|
||
|
|
public string Path { get; init; }
|
||
|
|
|
||
|
|
public int StoresCount { get; init; }
|
||
|
|
|
||
|
|
public static QdrantEdgeInfo Unavailable(string reason) => new()
|
||
|
|
{
|
||
|
|
Status = QdrantEdgeStatus.UNAVAILABLE,
|
||
|
|
UnavailableReason = reason
|
||
|
|
};
|
||
|
|
}
|