| | |
| | | { |
| | | Task<IReadOnlyList<LlmModelSummary>> GetModelsAsync(CancellationToken cancellationToken = default); |
| | | |
| | | Task<IReadOnlyList<LlmModelSummary>> GetModelsAsync( |
| | | LlmPluginRuntimeConfig runtimeConfig, |
| | | CancellationToken cancellationToken = default); |
| | | |
| | | Task<AiChatProjectsResult> GetProjectsAsync( |
| | | LlmPluginRuntimeConfig runtimeConfig, |
| | | CancellationToken cancellationToken = default); |
| | | |
| | | Task<AiChatMemoryCapabilities> GetMemoryCapabilitiesAsync( |
| | | LlmPluginRuntimeConfig runtimeConfig, |
| | | CancellationToken cancellationToken = default); |
| | | |
| | | Task<AiChatJsonResult> GetMemoriesAsync( |
| | | LlmPluginRuntimeConfig runtimeConfig, |
| | | AiChatGetMemoriesRequest request, |
| | | CancellationToken cancellationToken = default); |
| | | |
| | | Task<AiChatJsonResult> CreateMemoryAsync( |
| | | LlmPluginRuntimeConfig runtimeConfig, |
| | | AiChatCreateMemoryRequest request, |
| | | CancellationToken cancellationToken = default); |
| | | |
| | | Task DeleteMemoryAsync( |
| | | LlmPluginRuntimeConfig runtimeConfig, |
| | | string memoryId, |
| | | CancellationToken cancellationToken = default); |
| | | |
| | | Task<AiChatJsonResult> RecallMemoriesAsync( |
| | | LlmPluginRuntimeConfig runtimeConfig, |
| | | AiChatRecallMemoriesRequest request, |
| | | CancellationToken cancellationToken = default); |
| | | |
| | | IAsyncEnumerable<LlmStreamEvent> StreamChatAsync( |
| | | LlmChatRequest request, |
| | | CancellationToken cancellationToken = default); |
| | | |
| | | Task CancelAsync(string requestId, CancellationToken cancellationToken = default); |
| | | Task CancelPluginRequestsAsync(string pluginId, CancellationToken cancellationToken = default); |
| | | } |
| | | |
| | | public interface ILlmModelRegistry |
| | |
| | | IAsyncEnumerable<LlmProviderChunk> StreamAsync( |
| | | LlmProviderRequest request, |
| | | CancellationToken cancellationToken = default); |
| | | |
| | | Task<IReadOnlyList<string>> ListModelIdsAsync( |
| | | string baseUrl, |
| | | string? apiKey, |
| | | CancellationToken cancellationToken = default); |
| | | } |
| | | |
| | | public interface ILlmProviderAdapterFactory |
| | |
| | | { |
| | | Task<string?> ResolveSecretAsync(string? authRef, CancellationToken cancellationToken = default); |
| | | } |
| | | |
| | | public interface IAiChatClient |
| | | { |
| | | Task<IReadOnlyList<LlmModelSummary>> GetModelsAsync( |
| | | LlmPluginRuntimeConfig runtimeConfig, |
| | | CancellationToken cancellationToken = default); |
| | | |
| | | Task<IReadOnlyList<AiChatProjectSummary>> GetProjectsAsync( |
| | | LlmPluginRuntimeConfig runtimeConfig, |
| | | CancellationToken cancellationToken = default); |
| | | |
| | | IAsyncEnumerable<LlmStreamEvent> StreamChatAsync( |
| | | LlmChatRequest request, |
| | | LlmPluginRuntimeConfig runtimeConfig, |
| | | CancellationToken cancellationToken = default); |
| | | |
| | | Task<AiChatMemoryCapabilities> GetMemoryCapabilitiesAsync( |
| | | LlmPluginRuntimeConfig runtimeConfig, |
| | | CancellationToken cancellationToken = default); |
| | | |
| | | Task<AiChatJsonResult> GetMemoriesAsync( |
| | | LlmPluginRuntimeConfig runtimeConfig, |
| | | AiChatGetMemoriesRequest request, |
| | | CancellationToken cancellationToken = default); |
| | | |
| | | Task<AiChatJsonResult> CreateMemoryAsync( |
| | | LlmPluginRuntimeConfig runtimeConfig, |
| | | AiChatCreateMemoryRequest request, |
| | | CancellationToken cancellationToken = default); |
| | | |
| | | Task DeleteMemoryAsync( |
| | | LlmPluginRuntimeConfig runtimeConfig, |
| | | string memoryId, |
| | | CancellationToken cancellationToken = default); |
| | | |
| | | Task<AiChatJsonResult> RecallMemoriesAsync( |
| | | LlmPluginRuntimeConfig runtimeConfig, |
| | | AiChatRecallMemoriesRequest request, |
| | | CancellationToken cancellationToken = default); |
| | | } |