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