Class PutVoyageaiRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutVoyageaiRequest.Builder>
co.elastic.clients.elasticsearch.inference.PutVoyageaiRequest.Builder
- All Implemented Interfaces:
WithJson<PutVoyageaiRequest.Builder>,ObjectBuilder<PutVoyageaiRequest>
- Enclosing class:
- PutVoyageaiRequest
public static class PutVoyageaiRequest.Builder
extends RequestBase.AbstractBuilder<PutVoyageaiRequest.Builder>
implements ObjectBuilder<PutVoyageaiRequest>
Builder for
PutVoyageaiRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPutVoyageaiRequest.The chunking configuration object.chunkingSettings(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.protected PutVoyageaiRequest.Builderself()service(VoyageAIServiceType value) Required - The type of service supported for the specified task type.Required - Settings used to install the inference model.serviceSettings(Function<VoyageAIServiceSettings.Builder, ObjectBuilder<VoyageAIServiceSettings>> fn) Required - Settings used to install the inference model.taskSettings(VoyageAITaskSettings value) Settings to configure the inference task.Settings to configure the inference task.taskType(VoyageAITaskType value) Required - The type of the inference task that the model will perform.voyageaiInferenceId(String value) Required - The unique identifier of the inference endpoint.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
chunkingSettings
The chunking configuration object.API name:
chunking_settings -
chunkingSettings
public final PutVoyageaiRequest.Builder chunkingSettings(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.API name:
chunking_settings -
service
Required - The type of service supported for the specified task type. In this case,voyageai.API name:
service -
serviceSettings
Required - Settings used to install the inference model. These settings are specific to thevoyageaiservice.API name:
service_settings -
serviceSettings
public final PutVoyageaiRequest.Builder serviceSettings(Function<VoyageAIServiceSettings.Builder, ObjectBuilder<VoyageAIServiceSettings>> fn) Required - Settings used to install the inference model. These settings are specific to thevoyageaiservice.API name:
service_settings -
taskSettings
Settings to configure the inference task. These settings are specific to the task type you specified.API name:
task_settings -
taskSettings
public final PutVoyageaiRequest.Builder taskSettings(Function<VoyageAITaskSettings.Builder, ObjectBuilder<VoyageAITaskSettings>> fn) Settings to configure the inference task. These settings are specific to the task type you specified.API name:
task_settings -
taskType
Required - The type of the inference task that the model will perform.API name:
task_type -
voyageaiInferenceId
Required - The unique identifier of the inference endpoint.API name:
voyageai_inference_id -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutVoyageaiRequest.Builder>
-
build
Builds aPutVoyageaiRequest.- Specified by:
buildin interfaceObjectBuilder<PutVoyageaiRequest>- Throws:
NullPointerException- if some of the required fields are null.
-