Class ChatCompletionListPageAsync
-
- All Implemented Interfaces:
public final class ChatCompletionListPageAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionListPageAsync.BuilderA builder for ChatCompletionListPageAsync.
public final classChatCompletionListPageAsync.AutoPager
-
Method Summary
Modifier and Type Method Description final List<ChatCompletion>data()Delegates to ChatCompletionListPageResponse, but gracefully handles missing data. final Optional<Boolean>hasMore()Delegates to ChatCompletionListPageResponse, but gracefully handles missing data. final BooleanhasNextPage()final Optional<ChatCompletionListParams>getNextPageParams()final CompletableFuture<Optional<ChatCompletionListPageAsync>>getNextPage()final ChatCompletionListPageAsync.AutoPagerautoPager()final ChatCompletionListParamsparams()The parameters that were used to request this page. final ChatCompletionListPageResponseresponse()The response that this page was parsed from. final ChatCompletionListPageAsync.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionListPageAsync.Builderbuilder()Returns a mutable builder for constructing an instance of ChatCompletionListPageAsync. -
-
Method Detail
-
data
final List<ChatCompletion> data()
Delegates to ChatCompletionListPageResponse, but gracefully handles missing data.
-
hasMore
final Optional<Boolean> hasMore()
Delegates to ChatCompletionListPageResponse, but gracefully handles missing data.
-
hasNextPage
final Boolean hasNextPage()
-
getNextPageParams
final Optional<ChatCompletionListParams> getNextPageParams()
-
getNextPage
final CompletableFuture<Optional<ChatCompletionListPageAsync>> getNextPage()
-
autoPager
final ChatCompletionListPageAsync.AutoPager autoPager()
-
params
final ChatCompletionListParams params()
The parameters that were used to request this page.
-
response
final ChatCompletionListPageResponse response()
The response that this page was parsed from.
-
toBuilder
final ChatCompletionListPageAsync.Builder toBuilder()
-
builder
final static ChatCompletionListPageAsync.Builder builder()
Returns a mutable builder for constructing an instance of ChatCompletionListPageAsync.
The following fields are required:
.service() .params() .response()
-
-
-
-