Class PutMistralRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutMistralRequest.Builder>
co.elastic.clients.elasticsearch.inference.PutMistralRequest.Builder
- All Implemented Interfaces:
WithJson<PutMistralRequest.Builder>
,ObjectBuilder<PutMistralRequest>
- Enclosing class:
- PutMistralRequest
public static class PutMistralRequest.Builder
extends RequestBase.AbstractBuilder<PutMistralRequest.Builder>
implements ObjectBuilder<PutMistralRequest>
Builder for
PutMistralRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aPutMistralRequest
.The chunking configuration object.chunkingSettings
(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.mistralInferenceId
(String value) Required - The unique identifier of the inference endpoint.protected PutMistralRequest.Builder
self()
service
(MistralServiceType value) Required - The type of service supported for the specified task type.Required - Settings used to install the inference model.Required - Settings used to install the inference model.taskType
(MistralTaskType value) Required - The task type.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods 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 PutMistralRequest.Builder chunkingSettings(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.API name:
chunking_settings
-
mistralInferenceId
Required - The unique identifier of the inference endpoint.API name:
mistral_inference_id
-
service
Required - The type of service supported for the specified task type. In this case,mistral
.API name:
service
-
serviceSettings
Required - Settings used to install the inference model. These settings are specific to themistral
service.API name:
service_settings
-
serviceSettings
public final PutMistralRequest.Builder serviceSettings(Function<MistralServiceSettings.Builder, ObjectBuilder<MistralServiceSettings>> fn) Required - Settings used to install the inference model. These settings are specific to themistral
service.API name:
service_settings
-
taskType
Required - The task type. The only valid task type for the model to perform istext_embedding
.API name:
task_type
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<PutMistralRequest.Builder>
-
build
Builds aPutMistralRequest
.- Specified by:
build
in interfaceObjectBuilder<PutMistralRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-