Class PutAnthropicRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutAnthropicRequest.Builder>
co.elastic.clients.elasticsearch.inference.PutAnthropicRequest.Builder
- All Implemented Interfaces:
WithJson<PutAnthropicRequest.Builder>,ObjectBuilder<PutAnthropicRequest>
- Enclosing class:
- PutAnthropicRequest
public static class PutAnthropicRequest.Builder
extends RequestBase.AbstractBuilder<PutAnthropicRequest.Builder>
implements ObjectBuilder<PutAnthropicRequest>
Builder for
PutAnthropicRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanthropicInferenceId(String value) Required - The unique identifier of the inference endpoint.build()Builds aPutAnthropicRequest.The chunking configuration object.chunkingSettings(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.protected PutAnthropicRequest.Builderself()service(AnthropicServiceType value) Required - The type of service supported for the specified task type.Required - Settings used to install the inference model.serviceSettings(Function<AnthropicServiceSettings.Builder, ObjectBuilder<AnthropicServiceSettings>> fn) Required - Settings used to install the inference model.Settings to configure the inference task.Settings to configure the inference task.taskType(AnthropicTaskType value) Required - The task type.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
-
anthropicInferenceId
Required - The unique identifier of the inference endpoint.API name:
anthropic_inference_id -
chunkingSettings
public final PutAnthropicRequest.Builder chunkingSettings(@Nullable InferenceChunkingSettings value) The chunking configuration object.API name:
chunking_settings -
chunkingSettings
public final PutAnthropicRequest.Builder chunkingSettings(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.API name:
chunking_settings -
service
Required - The type of service supported for the specified task type. In this case,anthropic.API name:
service -
serviceSettings
Required - Settings used to install the inference model. These settings are specific to thewatsonxaiservice.API name:
service_settings -
serviceSettings
public final PutAnthropicRequest.Builder serviceSettings(Function<AnthropicServiceSettings.Builder, ObjectBuilder<AnthropicServiceSettings>> fn) Required - Settings used to install the inference model. These settings are specific to thewatsonxaiservice.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 PutAnthropicRequest.Builder taskSettings(Function<AnthropicTaskSettings.Builder, ObjectBuilder<AnthropicTaskSettings>> fn) Settings to configure the inference task. These settings are specific to the task type you specified.API name:
task_settings -
taskType
Required - The task type. The only valid task type for the model to perform iscompletion.API name:
task_type -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutAnthropicRequest.Builder>
-
build
Builds aPutAnthropicRequest.- Specified by:
buildin interfaceObjectBuilder<PutAnthropicRequest>- Throws:
NullPointerException- if some of the required fields are null.
-