Multi-Platform Package Manager for Stable Diffusion
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
905 B

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using StabilityMatrix.Core.Inference;
using StabilityMatrix.Core.Models;
using StabilityMatrix.Core.Models.Api.Comfy;
namespace StabilityMatrix.Avalonia.Services;
public interface IInferenceClientManager : IDisposable, INotifyPropertyChanged, INotifyPropertyChanging
{
ComfyClient? Client { get; set; }
[MemberNotNullWhen(true, nameof(Client))]
bool IsConnected { get; }
IReadOnlyCollection<HybridModelFile>? Models { get; set; }
IReadOnlyCollection<HybridModelFile>? VaeModels { get; set; }
IReadOnlyCollection<ComfySampler>? Samplers { get; set; }
IReadOnlyCollection<ComfyUpscaler>? Upscalers { get; set; }
Task ConnectAsync();
Task ConnectAsync(PackagePair packagePair);
Task CloseAsync();
}