Class PutDeepseekRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutDeepseekRequest.Builder>
co.elastic.clients.elasticsearch.inference.PutDeepseekRequest.Builder
- All Implemented Interfaces:
WithJson<PutDeepseekRequest.Builder>,ObjectBuilder<PutDeepseekRequest>
- Enclosing class:
- PutDeepseekRequest
public static class PutDeepseekRequest.Builder
extends RequestBase.AbstractBuilder<PutDeepseekRequest.Builder>
implements ObjectBuilder<PutDeepseekRequest>
Builder for
PutDeepseekRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPutDeepseekRequest.The chunking configuration object.chunkingSettings(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.deepseekInferenceId(String value) Required - The unique identifier of the inference endpoint.protected PutDeepseekRequest.Builderself()service(DeepSeekServiceType value) Required - The type of service supported for the specified task type.Required - Settings used to install the inference model.serviceSettings(Function<DeepSeekServiceSettings.Builder, ObjectBuilder<DeepSeekServiceSettings>> fn) Required - Settings used to install the inference model.taskType(TaskTypeDeepSeek 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
The chunking configuration object.API name:
chunking_settings -
chunkingSettings
public final PutDeepseekRequest.Builder chunkingSettings(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.API name:
chunking_settings -
deepseekInferenceId
Required - The unique identifier of the inference endpoint.API name:
deepseek_inference_id -
service
Required - The type of service supported for the specified task type. In this case,deepseek.API name:
service -
serviceSettings
Required - Settings used to install the inference model. These settings are specific to thedeepseekservice.API name:
service_settings -
serviceSettings
public final PutDeepseekRequest.Builder serviceSettings(Function<DeepSeekServiceSettings.Builder, ObjectBuilder<DeepSeekServiceSettings>> fn) Required - Settings used to install the inference model. These settings are specific to thedeepseekservice.API name:
service_settings -
taskType
Required - The type of the inference task that the model will perform.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<PutDeepseekRequest.Builder>
-
build
Builds aPutDeepseekRequest.- Specified by:
buildin interfaceObjectBuilder<PutDeepseekRequest>- Throws:
NullPointerException- if some of the required fields are null.
-