namespace Moli.Desktop.Llm; public interface ILlmGatewayService { Task> GetModelsAsync(CancellationToken cancellationToken = default); IAsyncEnumerable StreamChatAsync( LlmChatRequest request, CancellationToken cancellationToken = default); Task CancelAsync(string requestId, CancellationToken cancellationToken = default); } public interface ILlmModelRegistry { Task LoadAsync(CancellationToken cancellationToken = default); Task GetEnabledModelAsync(string modelId, CancellationToken cancellationToken = default); } public interface ILlmProviderAdapter { string Provider { get; } IAsyncEnumerable StreamAsync( LlmProviderRequest request, CancellationToken cancellationToken = default); } public interface ILlmProviderAdapterFactory { ILlmProviderAdapter? Get(string provider); } public interface ICredentialStore { Task ResolveSecretAsync(string? authRef, CancellationToken cancellationToken = default); }