Class RetrievalAugmentedGenerationResponseProcessor
- java.lang.Object
-
- org.opensearch.client.opensearch.search_pipeline.RetrievalAugmentedGenerationResponseProcessor
-
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ResponseProcessorVariant,ToCopyableBuilder<RetrievalAugmentedGenerationResponseProcessor.Builder,RetrievalAugmentedGenerationResponseProcessor>
@JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") public class RetrievalAugmentedGenerationResponseProcessor extends java.lang.Object implements ResponseProcessorVariant, PlainJsonSerializable, ToCopyableBuilder<RetrievalAugmentedGenerationResponseProcessor.Builder,RetrievalAugmentedGenerationResponseProcessor>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRetrievalAugmentedGenerationResponseProcessor.BuilderBuilder forRetrievalAugmentedGenerationResponseProcessor.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<RetrievalAugmentedGenerationResponseProcessor>_DESERIALIZERJson deserializer forRetrievalAugmentedGenerationResponseProcessor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseProcessor.Kind_responseProcessorKind()ResponseProcessorvariant kind.static RetrievalAugmentedGenerationResponseProcessor.Builderbuilder()java.util.List<java.lang.String>contextFieldList()Required - API name:context_field_listjava.lang.Stringdescription()API name:descriptionbooleanequals(java.lang.Object o)inthashCode()java.lang.StringmodelId()Required - API name:model_idstatic RetrievalAugmentedGenerationResponseProcessorof(java.util.function.Function<RetrievalAugmentedGenerationResponseProcessor.Builder,ObjectBuilder<RetrievalAugmentedGenerationResponseProcessor>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupRetrievalAugmentedGenerationResponseProcessorDeserializer(ObjectDeserializer<RetrievalAugmentedGenerationResponseProcessor.Builder> op)java.lang.StringsystemPrompt()API name:system_promptjava.lang.Stringtag()API name:tagRetrievalAugmentedGenerationResponseProcessor.BuildertoBuilder()Create a new builderToCopyableBuilderthat is initialised with the current state of this object.java.lang.StringuserInstructions()API name:user_instructions-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Methods inherited from interface org.opensearch.client.opensearch.search_pipeline.ResponseProcessorVariant
_toResponseProcessor
-
Methods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<RetrievalAugmentedGenerationResponseProcessor> _DESERIALIZER
Json deserializer forRetrievalAugmentedGenerationResponseProcessor
-
-
Method Detail
-
of
public static RetrievalAugmentedGenerationResponseProcessor of(java.util.function.Function<RetrievalAugmentedGenerationResponseProcessor.Builder,ObjectBuilder<RetrievalAugmentedGenerationResponseProcessor>> fn)
-
_responseProcessorKind
public ResponseProcessor.Kind _responseProcessorKind()
ResponseProcessorvariant kind.- Specified by:
_responseProcessorKindin interfaceResponseProcessorVariant
-
contextFieldList
@Nonnull public final java.util.List<java.lang.String> contextFieldList()
Required - API name:context_field_list
-
description
@Nullable public final java.lang.String description()
API name:description
-
modelId
@Nonnull public final java.lang.String modelId()
Required - API name:model_id
-
systemPrompt
@Nullable public final java.lang.String systemPrompt()
API name:system_prompt
-
tag
@Nullable public final java.lang.String tag()
API name:tag
-
userInstructions
@Nullable public final java.lang.String userInstructions()
API name:user_instructions
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
toBuilder
@Nonnull public RetrievalAugmentedGenerationResponseProcessor.Builder toBuilder()
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<RetrievalAugmentedGenerationResponseProcessor.Builder,RetrievalAugmentedGenerationResponseProcessor>- Returns:
- a new builder instance.
-
builder
@Nonnull public static RetrievalAugmentedGenerationResponseProcessor.Builder builder()
-
setupRetrievalAugmentedGenerationResponseProcessorDeserializer
protected static void setupRetrievalAugmentedGenerationResponseProcessorDeserializer(ObjectDeserializer<RetrievalAugmentedGenerationResponseProcessor.Builder> op)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-