Class PutFireworksaiRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutFireworksaiRequest.Builder>
co.elastic.clients.elasticsearch.inference.PutFireworksaiRequest.Builder
- All Implemented Interfaces:
WithJson<PutFireworksaiRequest.Builder>,ObjectBuilder<PutFireworksaiRequest>
- Enclosing class:
- PutFireworksaiRequest
public static class PutFireworksaiRequest.Builder
extends RequestBase.AbstractBuilder<PutFireworksaiRequest.Builder>
implements ObjectBuilder<PutFireworksaiRequest>
Builder for
PutFireworksaiRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPutFireworksaiRequest.The chunking configuration object.chunkingSettings(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object.fireworksaiInferenceId(String value) Required - The unique identifier of the inference endpoint.protected PutFireworksaiRequest.Builderself()service(FireworksAIServiceType value) Required - The type of service supported for the specified task type.Required - Settings used to install the inference model.serviceSettings(Function<FireworksAIServiceSettings.Builder, ObjectBuilder<FireworksAIServiceSettings>> fn) Required - Settings used to install the inference model.Settings to configure the inference task.Settings to configure the inference task.taskType(FireworksAITaskType 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
public final PutFireworksaiRequest.Builder chunkingSettings(@Nullable InferenceChunkingSettings value) The chunking configuration object. Applies only to thetext_embeddingtask type. Not applicable to thecompletionorchat_completiontask types.API name:
chunking_settings -
chunkingSettings
public final PutFireworksaiRequest.Builder chunkingSettings(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) The chunking configuration object. Applies only to thetext_embeddingtask type. Not applicable to thecompletionorchat_completiontask types.API name:
chunking_settings -
fireworksaiInferenceId
Required - The unique identifier of the inference endpoint.API name:
fireworksai_inference_id -
service
Required - The type of service supported for the specified task type. In this case,fireworksai.API name:
service -
serviceSettings
Required - Settings used to install the inference model. These settings are specific to thefireworksaiservice.API name:
service_settings -
serviceSettings
public final PutFireworksaiRequest.Builder serviceSettings(Function<FireworksAIServiceSettings.Builder, ObjectBuilder<FireworksAIServiceSettings>> fn) Required - Settings used to install the inference model. These settings are specific to thefireworksaiservice.API name:
service_settings -
taskSettings
Settings to configure the inference task. Applies only to thecompletionorchat_completiontask types. Not applicable to thetext_embeddingtask type. These settings are specific to the task type you specified.API name:
task_settings -
taskSettings
public final PutFireworksaiRequest.Builder taskSettings(Function<FireworksAITaskSettings.Builder, ObjectBuilder<FireworksAITaskSettings>> fn) Settings to configure the inference task. Applies only to thecompletionorchat_completiontask types. Not applicable to thetext_embeddingtask type. 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<PutFireworksaiRequest.Builder>
-
build
Builds aPutFireworksaiRequest.- Specified by:
buildin interfaceObjectBuilder<PutFireworksaiRequest>- Throws:
NullPointerException- if some of the required fields are null.
-