Class BatchPage<T>
java.lang.Object
dev.langchain4j.model.batch.BatchPage<T>
- Type Parameters:
T- the type of the responses payload in each batch (e.g.,ChatResponse,Embedding)
Represents a set of batch jobs that is potentially paginated.
A BatchPage contains the batch operations for the current page. If more jobs are available,
the nextPageToken can be used to request the next page of results.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBatchPage(List<BatchResponse<T>> batches, @Nullable String nextPageToken) Creates a newBatchPage. -
Method Summary
-
Constructor Details
-
BatchPage
Creates a newBatchPage.- Parameters:
batches- the list of batch responses for the current pagenextPageToken- the token to pass tolistmethods to retrieve the next page; if present, it signifies more results are available. May benullif no more pages exist.
-
-
Method Details
-
batches
Returns the list of batch responses for the current page. -
nextPageToken
Returns the token to pass tolistmethods to retrieve the next page, ornullif no more pages exist. -
equals
-
hashCode
-
toString
-