Class BatchResponse.Builder<T>
java.lang.Object
dev.langchain4j.model.batch.BatchResponse.Builder<T>
- Type Parameters:
T- the type of the responses payload
- Enclosing class:
BatchResponse<T>
Builder for constructing
BatchResponse instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the unique identifier of the batch operation.build()Builds a newBatchResponseinstance.results(List<BatchItemResult<T>> results) Sets the per-request results of the batch operation, in submission order.state(BatchState state) Sets the current state of the batch job.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
batchId
Sets the unique identifier of the batch operation. -
state
Sets the current state of the batch job. -
results
Sets the per-request results of the batch operation, in submission order. -
build
Builds a newBatchResponseinstance.
-