Class RetrievalAugmentedGenerationResponseProcessor.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.search_pipeline.RetrievalAugmentedGenerationResponseProcessor.Builder
- All Implemented Interfaces:
CopyableBuilder<RetrievalAugmentedGenerationResponseProcessor.Builder,,RetrievalAugmentedGenerationResponseProcessor> MutableBuilder<RetrievalAugmentedGenerationResponseProcessor.Builder,,RetrievalAugmentedGenerationResponseProcessor> ObjectBuilder<RetrievalAugmentedGenerationResponseProcessor>
- Enclosing class:
RetrievalAugmentedGenerationResponseProcessor
public static class RetrievalAugmentedGenerationResponseProcessor.Builder
extends ObjectBuilderBase
implements CopyableBuilder<RetrievalAugmentedGenerationResponseProcessor.Builder,RetrievalAugmentedGenerationResponseProcessor>
Builder for
RetrievalAugmentedGenerationResponseProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()contextFieldList(String value, String... values) Required - API name:context_field_listcontextFieldList(List<String> list) Required - API name:context_field_listcopy()Create a new builderCopyableBuilderthat is a copy of this one.description(String value) API name:descriptionRequired - API name:model_idsystemPrompt(String value) API name:system_promptAPI name:taguserInstructions(String value) API name:user_instructionsMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<RetrievalAugmentedGenerationResponseProcessor.Builder,RetrievalAugmentedGenerationResponseProcessor> - Returns:
- a new builder instance.
-
contextFieldList
@Nonnull public final RetrievalAugmentedGenerationResponseProcessor.Builder contextFieldList(List<String> list) Required - API name:context_field_listAdds all elements of
listtocontextFieldList. -
contextFieldList
@Nonnull public final RetrievalAugmentedGenerationResponseProcessor.Builder contextFieldList(String value, String... values) Required - API name:context_field_listAdds one or more values to
contextFieldList. -
description
@Nonnull public final RetrievalAugmentedGenerationResponseProcessor.Builder description(@Nullable String value) API name:description -
modelId
Required - API name:model_id -
systemPrompt
@Nonnull public final RetrievalAugmentedGenerationResponseProcessor.Builder systemPrompt(@Nullable String value) API name:system_prompt -
tag
@Nonnull public final RetrievalAugmentedGenerationResponseProcessor.Builder tag(@Nullable String value) API name:tag -
userInstructions
@Nonnull public final RetrievalAugmentedGenerationResponseProcessor.Builder userInstructions(@Nullable String value) API name:user_instructions -
build
- Specified by:
buildin interfaceObjectBuilder<RetrievalAugmentedGenerationResponseProcessor>- Throws:
NullPointerException- if some of the required fields are null.
-