Class PutOpenshiftAiRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutOpenshiftAiRequest.Builder>
co.elastic.clients.elasticsearch.inference.PutOpenshiftAiRequest.Builder
- All Implemented Interfaces:
WithJson<PutOpenshiftAiRequest.Builder>,ObjectBuilder<PutOpenshiftAiRequest>
- Enclosing class:
- PutOpenshiftAiRequest
public static class PutOpenshiftAiRequest.Builder
extends RequestBase.AbstractBuilder<PutOpenshiftAiRequest.Builder>
implements ObjectBuilder<PutOpenshiftAiRequest>
Builder for
PutOpenshiftAiRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPutOpenshiftAiRequest.The chunking configuration object.chunkingSettings(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.openshiftaiInferenceId(String value) Required - The unique identifier of the inference endpoint.protected PutOpenshiftAiRequest.Builderself()service(OpenShiftAiServiceType value) Required - The type of service supported for the specified task type.Required - Settings used to install the inference model.serviceSettings(Function<OpenShiftAiServiceSettings.Builder, ObjectBuilder<OpenShiftAiServiceSettings>> fn) Required - Settings used to install the inference model.Settings to configure the inference task.Settings to configure the inference task.taskType(OpenShiftAiTaskType value) Required - The type of the inference task that the model will perform.Specifies the amount of time to wait for the inference endpoint to be created.Specifies the amount of time to wait for the inference endpoint to be created.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
public final PutOpenshiftAiRequest.Builder chunkingSettings(@Nullable InferenceChunkingSettings value) The chunking configuration object. Applies only to thetext_embeddingtask type. Not applicable to thererank,completion, orchat_completiontask types.API name:
chunking_settings -
chunkingSettings
public final PutOpenshiftAiRequest.Builder chunkingSettings(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object. Applies only to thetext_embeddingtask type. Not applicable to thererank,completion, orchat_completiontask types.API name:
chunking_settings -
openshiftaiInferenceId
Required - The unique identifier of the inference endpoint.API name:
openshiftai_inference_id -
service
Required - The type of service supported for the specified task type. In this case,openshift_ai.API name:
service -
serviceSettings
Required - Settings used to install the inference model. These settings are specific to theopenshift_aiservice.API name:
service_settings -
serviceSettings
public final PutOpenshiftAiRequest.Builder serviceSettings(Function<OpenShiftAiServiceSettings.Builder, ObjectBuilder<OpenShiftAiServiceSettings>> fn) Required - Settings used to install the inference model. These settings are specific to theopenshift_aiservice.API name:
service_settings -
taskSettings
Settings to configure the inference task. Applies only to thereranktask type. Not applicable to thetext_embedding,completion, orchat_completiontask types. These settings are specific to the task type you specified.API name:
task_settings -
taskSettings
public final PutOpenshiftAiRequest.Builder taskSettings(Function<OpenShiftAiTaskSettings.Builder, ObjectBuilder<OpenShiftAiTaskSettings>> fn) Settings to configure the inference task. Applies only to thereranktask type. Not applicable to thetext_embedding,completion, orchat_completiontask types. 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. NOTE: Thechat_completiontask type only supports streaming and only through the _stream API.API name:
task_type -
timeout
Specifies the amount of time to wait for the inference endpoint to be created.API name:
timeout -
timeout
Specifies the amount of time to wait for the inference endpoint to be created.API name:
timeout -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutOpenshiftAiRequest.Builder>
-
build
Builds aPutOpenshiftAiRequest.- Specified by:
buildin interfaceObjectBuilder<PutOpenshiftAiRequest>- Throws:
NullPointerException- if some of the required fields are null.
-