Package com.anthropic.models
Class ModelListPageAsync
-
- All Implemented Interfaces:
public final class ModelListPageAsyncList available models.
The Models API response can be used to determine which models are available for use in the API. More recently released models are listed first.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classModelListPageAsync.Responsepublic final classModelListPageAsync.AutoPager
-
Method Summary
Modifier and Type Method Description final ModelListPageAsync.Responseresponse()final List<ModelInfo>data()final Optional<Boolean>hasMore()final Optional<String>firstId()final Optional<String>lastId()Booleanequals(Object other)IntegerhashCode()StringtoString()final BooleanhasNextPage()final Optional<ModelListParams>getNextPageParams()final CompletableFuture<Optional<ModelListPageAsync>>getNextPage()final ModelListPageAsync.AutoPagerautoPager()final static ModelListPageAsyncof(ModelServiceAsync modelsService, ModelListParams params, ModelListPageAsync.Response response)-
-
Method Detail
-
response
final ModelListPageAsync.Response response()
-
hasNextPage
final Boolean hasNextPage()
-
getNextPageParams
final Optional<ModelListParams> getNextPageParams()
-
getNextPage
final CompletableFuture<Optional<ModelListPageAsync>> getNextPage()
-
autoPager
final ModelListPageAsync.AutoPager autoPager()
-
of
final static ModelListPageAsync of(ModelServiceAsync modelsService, ModelListParams params, ModelListPageAsync.Response response)
-
-
-
-