/ src / common / LanguageModelProvider / ILanguageModelProvider.cs
ILanguageModelProvider.cs
 1  // Copyright (c) Microsoft Corporation
 2  // The Microsoft Corporation licenses this file to you under the MIT license.
 3  // See the LICENSE file in the project root for more information.
 4  
 5  using Microsoft.Extensions.AI;
 6  
 7  namespace LanguageModelProvider;
 8  
 9  public interface ILanguageModelProvider
10  {
11      string Name { get; }
12  
13      string ProviderDescription { get; }
14  
15      Task<IEnumerable<ModelDetails>> GetModelsAsync(CancellationToken cancelationToken = default);
16  
17      IChatClient? GetIChatClient(string modelId);
18  
19      string GetIChatClientString(string url);
20  }