@@ -29,7 +29,7 @@ public abstract string Name { get; }
2929List the available models in the catalog.
3030
3131``` csharp
32- Task < List < Model >> ListModelsAsync (Nullable < CancellationToken > ct )
32+ Task < List < IModel >> ListModelsAsync (Nullable < CancellationToken > ct )
3333```
3434
3535#### Parameters
@@ -39,15 +39,15 @@ Optional CancellationToken.
3939
4040#### Returns
4141
42- [ Task< ; List< ; Model > ;> ; ] ( https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 ) <br >
43- List of Model instances.
42+ [ Task< ; List< ; IModel > ;> ; ] ( https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 ) <br >
43+ List of IModel instances.
4444
4545### ** GetModelAsync(String, Nullable< ; CancellationToken> ; )**
4646
4747Lookup a model by its alias.
4848
4949``` csharp
50- Task < Model > GetModelAsync (string modelAlias , Nullable < CancellationToken > ct )
50+ Task < IModel > GetModelAsync (string modelAlias , Nullable < CancellationToken > ct )
5151```
5252
5353#### Parameters
@@ -60,15 +60,15 @@ Optional CancellationToken.
6060
6161#### Returns
6262
63- [ Task< ; Model > ; ] ( https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 ) <br >
64- The matching Model , or null if no model with the given alias exists.
63+ [ Task< ; IModel > ; ] ( https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 ) <br >
64+ The matching IModel , or null if no model with the given alias exists.
6565
6666### ** GetModelVariantAsync(String, Nullable< ; CancellationToken> ; )**
6767
6868Lookup a model variant by its unique model id.
6969
7070``` csharp
71- Task < ModelVariant > GetModelVariantAsync (string modelId , Nullable < CancellationToken > ct )
71+ Task < IModel > GetModelVariantAsync (string modelId , Nullable < CancellationToken > ct )
7272```
7373
7474#### Parameters
@@ -81,15 +81,15 @@ Optional CancellationToken.
8181
8282#### Returns
8383
84- [ Task< ; ModelVariant > ; ] ( https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 ) <br >
85- The matching ModelVariant , or null if no variant with the given id exists.
84+ [ Task< ; IModel > ; ] ( https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 ) <br >
85+ The matching IModel , or null if no variant with the given id exists.
8686
8787### ** GetCachedModelsAsync(Nullable< ; CancellationToken> ; )**
8888
8989Get a list of currently downloaded models from the model cache.
9090
9191``` csharp
92- Task < List < ModelVariant >> GetCachedModelsAsync (Nullable < CancellationToken > ct )
92+ Task < List < IModel >> GetCachedModelsAsync (Nullable < CancellationToken > ct )
9393```
9494
9595#### Parameters
@@ -99,15 +99,15 @@ Optional CancellationToken.
9999
100100#### Returns
101101
102- [ Task< ; List< ; ModelVariant > ;> ; ] ( https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 ) <br >
103- List of ModelVariant instances.
102+ [ Task< ; List< ; IModel > ;> ; ] ( https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 ) <br >
103+ List of IModel instances.
104104
105105### ** GetLoadedModelsAsync(Nullable< ; CancellationToken> ; )**
106106
107107Get a list of the currently loaded models.
108108
109109``` csharp
110- Task < List < ModelVariant >> GetLoadedModelsAsync (Nullable < CancellationToken > ct )
110+ Task < List < IModel >> GetLoadedModelsAsync (Nullable < CancellationToken > ct )
111111```
112112
113113#### Parameters
@@ -117,5 +117,27 @@ Optional CancellationToken.
117117
118118#### Returns
119119
120- [ Task< ; List< ; ModelVariant> ;> ; ] ( https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 ) <br >
121- List of ModelVariant instances.
120+ [ Task< ; List< ; IModel> ;> ; ] ( https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 ) <br >
121+ List of IModel instances.
122+
123+ ### ** GetLatestVersionAsync(IModel, Nullable< ; CancellationToken> ; )**
124+
125+ Get the latest version of a model.
126+ This is used to check if a newer version of a model is available in the catalog for download.
127+
128+ ``` csharp
129+ Task < IModel > GetLatestVersionAsync (IModel model , Nullable < CancellationToken > ct )
130+ ```
131+
132+ #### Parameters
133+
134+ ` model ` [ IModel] ( ./microsoft.ai.foundry.local.imodel.md ) <br >
135+ The model to check for the latest version.
136+
137+ ` ct ` [ Nullable< ; CancellationToken> ; ] ( https://docs.microsoft.com/en-us/dotnet/api/system.nullable-1 ) <br >
138+ Optional CancellationToken.
139+
140+ #### Returns
141+
142+ [ Task< ; IModel> ; ] ( https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 ) <br >
143+ The latest version of the model. Will match the input if it is the latest version.
0 commit comments