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.BuilderThe chunking configuration object.final PutCohereRequest.BuilderchunkingSettings(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.final PutCohereRequest.BuildercohereInferenceId(String value) Required - The unique identifier of the inference endpoint.protected PutCohereRequest.Builderself()final PutCohereRequest.Builderservice(CohereServiceType value) Required - The type of service supported for the specified task type.final PutCohereRequest.BuilderRequired - Settings used to install the inference model.final PutCohereRequest.BuilderRequired - Settings used to install the inference model.final PutCohereRequest.BuildertaskSettings(CohereTaskSettings value) Settings to configure the inference task.final PutCohereRequest.BuilderSettings to configure the inference task.final PutCohereRequest.BuildertaskType(CohereTaskType value) Required - The type of the inference task that the model will perform.final PutCohereRequest.BuilderSpecifies the amount of time to wait for the inference endpoint to be created.final PutCohereRequest.BuilderSpecifies 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 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 thecohereservice.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 thecohereservice.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 -
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<PutCohereRequest.Builder>
-
build
Builds aPutCohereRequest.- Specified by:
buildin interfaceObjectBuilder<PutCohereRequest>- Throws:
NullPointerException- if some of the required fields are null.
-