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) Optional task settingsMethods 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
Optional task settingsAPI name:
task_settings -
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.
-