Class ModuleResults
java.lang.Object
com.sap.ai.sdk.orchestration.model.ModuleResults
Synchronous results of each module.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddOutputUnmaskingItem(LLMChoice outputUnmaskingItem) Add one outputUnmasking instance to thisModuleResults.addTemplatingItem(ChatMessage templatingItem) Add one templating instance to thisModuleResults.static ModuleResultscreate()Create a newModuleResultsinstance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theModuleResults.Get groundingGet inputFilteringGet inputMaskingGet inputTranslationgetLlm()Get llmGet outputFilteringGet outputTranslationGet outputUnmaskingGet templatinggrounding(GenericModuleResult grounding) Set the grounding of thisModuleResultsinstance and return the same instance.inthashCode()inputFiltering(GenericModuleResult inputFiltering) Set the inputFiltering of thisModuleResultsinstance and return the same instance.inputMasking(GenericModuleResult inputMasking) Set the inputMasking of thisModuleResultsinstance and return the same instance.inputTranslation(InputTranslationModuleResult inputTranslation) Set the inputTranslation of thisModuleResultsinstance and return the same instance.llm(LLMModuleResult llm) Set the llm of thisModuleResultsinstance and return the same instance.outputFiltering(GenericModuleResult outputFiltering) Set the outputFiltering of thisModuleResultsinstance and return the same instance.outputTranslation(GenericModuleResult outputTranslation) Set the outputTranslation of thisModuleResultsinstance and return the same instance.outputUnmasking(List<LLMChoice> outputUnmasking) Set the outputUnmasking of thisModuleResultsinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisModuleResultsinstance.voidsetGrounding(GenericModuleResult grounding) Set the grounding of thisModuleResultsinstance.voidsetInputFiltering(GenericModuleResult inputFiltering) Set the inputFiltering of thisModuleResultsinstance.voidsetInputMasking(GenericModuleResult inputMasking) Set the inputMasking of thisModuleResultsinstance.voidsetInputTranslation(InputTranslationModuleResult inputTranslation) Set the inputTranslation of thisModuleResultsinstance.voidsetLlm(LLMModuleResult llm) Set the llm of thisModuleResultsinstance.voidsetOutputFiltering(GenericModuleResult outputFiltering) Set the outputFiltering of thisModuleResultsinstance.voidsetOutputTranslation(GenericModuleResult outputTranslation) Set the outputTranslation of thisModuleResultsinstance.voidsetOutputUnmasking(List<LLMChoice> outputUnmasking) Set the outputUnmasking of thisModuleResultsinstance.voidsetTemplating(List<ChatMessage> templating) Set the templating of thisModuleResultsinstance.templating(List<ChatMessage> templating) Set the templating of thisModuleResultsinstance and return the same instance.toMap()Get the value of all properties of thisModuleResultsinstance including unrecognized properties.toString()
-
Constructor Details
-
ModuleResults
protected ModuleResults()Default constructor for ModuleResults.
-
-
Method Details
-
grounding
Set the grounding of thisModuleResultsinstance and return the same instance.- Parameters:
grounding- The grounding of thisModuleResults- Returns:
- The same instance of this
ModuleResultsclass
-
getGrounding
Get grounding- Returns:
- grounding The grounding of this
ModuleResultsinstance.
-
setGrounding
Set the grounding of thisModuleResultsinstance.- Parameters:
grounding- The grounding of thisModuleResults
-
templating
Set the templating of thisModuleResultsinstance and return the same instance.- Parameters:
templating- The templating of thisModuleResults- Returns:
- The same instance of this
ModuleResultsclass
-
addTemplatingItem
Add one templating instance to thisModuleResults.- Parameters:
templatingItem- The templating that should be added- Returns:
- The same instance of type
ModuleResults
-
getTemplating
Get templating- Returns:
- templating The templating of this
ModuleResultsinstance.
-
setTemplating
Set the templating of thisModuleResultsinstance.- Parameters:
templating- The templating of thisModuleResults
-
inputTranslation
@Nonnull public ModuleResults inputTranslation(@Nullable InputTranslationModuleResult inputTranslation) Set the inputTranslation of thisModuleResultsinstance and return the same instance.- Parameters:
inputTranslation- The inputTranslation of thisModuleResults- Returns:
- The same instance of this
ModuleResultsclass
-
getInputTranslation
Get inputTranslation- Returns:
- inputTranslation The inputTranslation of this
ModuleResultsinstance.
-
setInputTranslation
Set the inputTranslation of thisModuleResultsinstance.- Parameters:
inputTranslation- The inputTranslation of thisModuleResults
-
inputMasking
Set the inputMasking of thisModuleResultsinstance and return the same instance.- Parameters:
inputMasking- The inputMasking of thisModuleResults- Returns:
- The same instance of this
ModuleResultsclass
-
getInputMasking
Get inputMasking- Returns:
- inputMasking The inputMasking of this
ModuleResultsinstance.
-
setInputMasking
Set the inputMasking of thisModuleResultsinstance.- Parameters:
inputMasking- The inputMasking of thisModuleResults
-
inputFiltering
Set the inputFiltering of thisModuleResultsinstance and return the same instance.- Parameters:
inputFiltering- The inputFiltering of thisModuleResults- Returns:
- The same instance of this
ModuleResultsclass
-
getInputFiltering
Get inputFiltering- Returns:
- inputFiltering The inputFiltering of this
ModuleResultsinstance.
-
setInputFiltering
Set the inputFiltering of thisModuleResultsinstance.- Parameters:
inputFiltering- The inputFiltering of thisModuleResults
-
outputFiltering
Set the outputFiltering of thisModuleResultsinstance and return the same instance.- Parameters:
outputFiltering- The outputFiltering of thisModuleResults- Returns:
- The same instance of this
ModuleResultsclass
-
getOutputFiltering
Get outputFiltering- Returns:
- outputFiltering The outputFiltering of this
ModuleResultsinstance.
-
setOutputFiltering
Set the outputFiltering of thisModuleResultsinstance.- Parameters:
outputFiltering- The outputFiltering of thisModuleResults
-
outputTranslation
Set the outputTranslation of thisModuleResultsinstance and return the same instance.- Parameters:
outputTranslation- The outputTranslation of thisModuleResults- Returns:
- The same instance of this
ModuleResultsclass
-
getOutputTranslation
Get outputTranslation- Returns:
- outputTranslation The outputTranslation of this
ModuleResultsinstance.
-
setOutputTranslation
Set the outputTranslation of thisModuleResultsinstance.- Parameters:
outputTranslation- The outputTranslation of thisModuleResults
-
llm
Set the llm of thisModuleResultsinstance and return the same instance.- Parameters:
llm- The llm of thisModuleResults- Returns:
- The same instance of this
ModuleResultsclass
-
getLlm
Get llm- Returns:
- llm The llm of this
ModuleResultsinstance.
-
setLlm
Set the llm of thisModuleResultsinstance.- Parameters:
llm- The llm of thisModuleResults
-
outputUnmasking
Set the outputUnmasking of thisModuleResultsinstance and return the same instance.- Parameters:
outputUnmasking- The outputUnmasking of thisModuleResults- Returns:
- The same instance of this
ModuleResultsclass
-
addOutputUnmaskingItem
Add one outputUnmasking instance to thisModuleResults.- Parameters:
outputUnmaskingItem- The outputUnmasking that should be added- Returns:
- The same instance of type
ModuleResults
-
getOutputUnmasking
Get outputUnmasking- Returns:
- outputUnmasking The outputUnmasking of this
ModuleResultsinstance.
-
setOutputUnmasking
Set the outputUnmasking of thisModuleResultsinstance.- Parameters:
outputUnmasking- The outputUnmasking of thisModuleResults
-
getCustomFieldNames
Get the names of the unrecognizable properties of theModuleResults.- 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 thisModuleResultsinstance.- 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 thisModuleResultsinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisModuleResultsinstance. 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 newModuleResultsinstance. No arguments are required.
-
toMap()instead.