Class ModuleResultsBase
java.lang.Object
com.sap.ai.sdk.orchestration.model.ModuleResultsBase
Results of each module of /embeddings endpoint(e.g. input masking).
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for ModuleResultsBase. -
Method Summary
Modifier and TypeMethodDescriptionaddTemplatingItem(ChatMessage templatingItem) Add one templating instance to thisModuleResultsBase.static ModuleResultsBasecreate()Create a newModuleResultsBaseinstance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theModuleResultsBase.Get groundingGet inputFilteringGet inputMaskingGet inputTranslationGet outputFilteringGet outputTranslationGet templatinggrounding(GenericModuleResult grounding) Set the grounding of thisModuleResultsBaseinstance and return the same instance.inthashCode()inputFiltering(GenericModuleResult inputFiltering) Set the inputFiltering of thisModuleResultsBaseinstance and return the same instance.inputMasking(GenericModuleResult inputMasking) Set the inputMasking of thisModuleResultsBaseinstance and return the same instance.inputTranslation(InputTranslationModuleResult inputTranslation) Set the inputTranslation of thisModuleResultsBaseinstance and return the same instance.outputFiltering(GenericModuleResult outputFiltering) Set the outputFiltering of thisModuleResultsBaseinstance and return the same instance.outputTranslation(GenericModuleResult outputTranslation) Set the outputTranslation of thisModuleResultsBaseinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisModuleResultsBaseinstance.voidsetGrounding(GenericModuleResult grounding) Set the grounding of thisModuleResultsBaseinstance.voidsetInputFiltering(GenericModuleResult inputFiltering) Set the inputFiltering of thisModuleResultsBaseinstance.voidsetInputMasking(GenericModuleResult inputMasking) Set the inputMasking of thisModuleResultsBaseinstance.voidsetInputTranslation(InputTranslationModuleResult inputTranslation) Set the inputTranslation of thisModuleResultsBaseinstance.voidsetOutputFiltering(GenericModuleResult outputFiltering) Set the outputFiltering of thisModuleResultsBaseinstance.voidsetOutputTranslation(GenericModuleResult outputTranslation) Set the outputTranslation of thisModuleResultsBaseinstance.voidsetTemplating(List<ChatMessage> templating) Set the templating of thisModuleResultsBaseinstance.templating(List<ChatMessage> templating) Set the templating of thisModuleResultsBaseinstance and return the same instance.toMap()Get the value of all properties of thisModuleResultsBaseinstance including unrecognized properties.toString()
-
Constructor Details
-
ModuleResultsBase
protected ModuleResultsBase()Default constructor for ModuleResultsBase.
-
-
Method Details
-
grounding
Set the grounding of thisModuleResultsBaseinstance and return the same instance.- Parameters:
grounding- The grounding of thisModuleResultsBase- Returns:
- The same instance of this
ModuleResultsBaseclass
-
getGrounding
Get grounding- Returns:
- grounding The grounding of this
ModuleResultsBaseinstance.
-
setGrounding
Set the grounding of thisModuleResultsBaseinstance.- Parameters:
grounding- The grounding of thisModuleResultsBase
-
templating
Set the templating of thisModuleResultsBaseinstance and return the same instance.- Parameters:
templating- The templating of thisModuleResultsBase- Returns:
- The same instance of this
ModuleResultsBaseclass
-
addTemplatingItem
Add one templating instance to thisModuleResultsBase.- Parameters:
templatingItem- The templating that should be added- Returns:
- The same instance of type
ModuleResultsBase
-
getTemplating
Get templating- Returns:
- templating The templating of this
ModuleResultsBaseinstance.
-
setTemplating
Set the templating of thisModuleResultsBaseinstance.- Parameters:
templating- The templating of thisModuleResultsBase
-
inputTranslation
@Nonnull public ModuleResultsBase inputTranslation(@Nullable InputTranslationModuleResult inputTranslation) Set the inputTranslation of thisModuleResultsBaseinstance and return the same instance.- Parameters:
inputTranslation- The inputTranslation of thisModuleResultsBase- Returns:
- The same instance of this
ModuleResultsBaseclass
-
getInputTranslation
Get inputTranslation- Returns:
- inputTranslation The inputTranslation of this
ModuleResultsBaseinstance.
-
setInputTranslation
Set the inputTranslation of thisModuleResultsBaseinstance.- Parameters:
inputTranslation- The inputTranslation of thisModuleResultsBase
-
inputMasking
Set the inputMasking of thisModuleResultsBaseinstance and return the same instance.- Parameters:
inputMasking- The inputMasking of thisModuleResultsBase- Returns:
- The same instance of this
ModuleResultsBaseclass
-
getInputMasking
Get inputMasking- Returns:
- inputMasking The inputMasking of this
ModuleResultsBaseinstance.
-
setInputMasking
Set the inputMasking of thisModuleResultsBaseinstance.- Parameters:
inputMasking- The inputMasking of thisModuleResultsBase
-
inputFiltering
Set the inputFiltering of thisModuleResultsBaseinstance and return the same instance.- Parameters:
inputFiltering- The inputFiltering of thisModuleResultsBase- Returns:
- The same instance of this
ModuleResultsBaseclass
-
getInputFiltering
Get inputFiltering- Returns:
- inputFiltering The inputFiltering of this
ModuleResultsBaseinstance.
-
setInputFiltering
Set the inputFiltering of thisModuleResultsBaseinstance.- Parameters:
inputFiltering- The inputFiltering of thisModuleResultsBase
-
outputFiltering
Set the outputFiltering of thisModuleResultsBaseinstance and return the same instance.- Parameters:
outputFiltering- The outputFiltering of thisModuleResultsBase- Returns:
- The same instance of this
ModuleResultsBaseclass
-
getOutputFiltering
Get outputFiltering- Returns:
- outputFiltering The outputFiltering of this
ModuleResultsBaseinstance.
-
setOutputFiltering
Set the outputFiltering of thisModuleResultsBaseinstance.- Parameters:
outputFiltering- The outputFiltering of thisModuleResultsBase
-
outputTranslation
@Nonnull public ModuleResultsBase outputTranslation(@Nullable GenericModuleResult outputTranslation) Set the outputTranslation of thisModuleResultsBaseinstance and return the same instance.- Parameters:
outputTranslation- The outputTranslation of thisModuleResultsBase- Returns:
- The same instance of this
ModuleResultsBaseclass
-
getOutputTranslation
Get outputTranslation- Returns:
- outputTranslation The outputTranslation of this
ModuleResultsBaseinstance.
-
setOutputTranslation
Set the outputTranslation of thisModuleResultsBaseinstance.- Parameters:
outputTranslation- The outputTranslation of thisModuleResultsBase
-
getCustomFieldNames
Get the names of the unrecognizable properties of theModuleResultsBase.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisModuleResultsBaseinstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisModuleResultsBaseinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisModuleResultsBaseinstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a newModuleResultsBaseinstance. No arguments are required.
-
toMap()instead.