Class StreamCompletionRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<StreamCompletionRequest.Builder>
co.elastic.clients.elasticsearch.inference.StreamCompletionRequest.Builder
- All Implemented Interfaces:
WithJson<StreamCompletionRequest.Builder>,ObjectBuilder<StreamCompletionRequest>
- Enclosing class:
- StreamCompletionRequest
public static class StreamCompletionRequest.Builder
extends RequestBase.AbstractBuilder<StreamCompletionRequest.Builder>
implements ObjectBuilder<StreamCompletionRequest>
Builder for
StreamCompletionRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aStreamCompletionRequest.inferenceId(String value) Required - The unique identifier for the inference endpoint.Required - The text on which you want to perform the inference task.Required - The text on which you want to perform the inference task.protected StreamCompletionRequest.Builderself()taskSettings(JsonData value) Task settings for the individual inference request.The amount of time to wait for the inference request to complete.The amount of time to wait for the inference request to complete.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
-
inferenceId
Required - The unique identifier for the inference endpoint.API name:
inference_id -
input
Required - The text on which you want to perform the inference task. It can be a single string or an array.NOTE: Inference endpoints for the completion task type currently only support a single string as input.
API name:
inputAdds all elements of
listtoinput. -
input
Required - The text on which you want to perform the inference task. It can be a single string or an array.NOTE: Inference endpoints for the completion task type currently only support a single string as input.
API name:
inputAdds one or more values to
input. -
taskSettings
Task settings for the individual inference request. These settings are specific to the <task_type> you specified and override the task settings specified when initializing the service.API name:
task_settings -
timeout
The amount of time to wait for the inference request to complete.API name:
timeout -
timeout
The amount of time to wait for the inference request to complete.API name:
timeout -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<StreamCompletionRequest.Builder>
-
build
Builds aStreamCompletionRequest.- Specified by:
buildin interfaceObjectBuilder<StreamCompletionRequest>- Throws:
NullPointerException- if some of the required fields are null.
-