using AIStudio.Tools.Rust; namespace AIStudio.Tools.Services; public sealed partial class RustService { public async Task GetQdrantInfo() { try { var cts = new CancellationTokenSource(TimeSpan.FromSeconds(45)); var response = await this.http.GetFromJsonAsync("/system/qdrant/info", this.jsonRustSerializerOptions, cts.Token); return response; } catch (Exception e) { if(this.logger is not null) this.logger.LogError(e, "Error while fetching Qdrant info from Rust service."); else Console.WriteLine($"Error while fetching Qdrant info from Rust service: '{e}'."); return default; } } }