Class PromptTemplatingModuleConfig
java.lang.Object
com.sap.ai.sdk.orchestration.model.PromptTemplatingModuleConfig
PromptTemplatingModuleConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for PromptTemplatingModuleConfig. -
Method Summary
Modifier and TypeMethodDescriptioncreate()Create a type-safe, fluent-api builder object to construct a newPromptTemplatingModuleConfiginstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of thePromptTemplatingModuleConfig.getModel()Get modelGet promptinthashCode()model(LLMModelDetails model) Set the model of thisPromptTemplatingModuleConfiginstance and return the same instance.Set the prompt of thisPromptTemplatingModuleConfiginstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisPromptTemplatingModuleConfiginstance.voidsetModel(LLMModelDetails model) Set the model of thisPromptTemplatingModuleConfiginstance.voidSet the prompt of thisPromptTemplatingModuleConfiginstance.toMap()Get the value of all properties of thisPromptTemplatingModuleConfiginstance including unrecognized properties.toString()
-
Constructor Details
-
PromptTemplatingModuleConfig
protected PromptTemplatingModuleConfig()Default constructor for PromptTemplatingModuleConfig.
-
-
Method Details
-
prompt
@Nonnull public PromptTemplatingModuleConfig prompt(@Nonnull PromptTemplatingModuleConfigPrompt prompt) Set the prompt of thisPromptTemplatingModuleConfiginstance and return the same instance.- Parameters:
prompt- The prompt of thisPromptTemplatingModuleConfig- Returns:
- The same instance of this
PromptTemplatingModuleConfigclass
-
getPrompt
Get prompt- Returns:
- prompt The prompt of this
PromptTemplatingModuleConfiginstance.
-
setPrompt
Set the prompt of thisPromptTemplatingModuleConfiginstance.- Parameters:
prompt- The prompt of thisPromptTemplatingModuleConfig
-
model
Set the model of thisPromptTemplatingModuleConfiginstance and return the same instance.- Parameters:
model- The model of thisPromptTemplatingModuleConfig- Returns:
- The same instance of this
PromptTemplatingModuleConfigclass
-
getModel
Get model- Returns:
- model The model of this
PromptTemplatingModuleConfiginstance.
-
setModel
Set the model of thisPromptTemplatingModuleConfiginstance.- Parameters:
model- The model of thisPromptTemplatingModuleConfig
-
getCustomFieldNames
Get the names of the unrecognizable properties of thePromptTemplatingModuleConfig.- 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 thisPromptTemplatingModuleConfiginstance.- 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 thisPromptTemplatingModuleConfiginstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisPromptTemplatingModuleConfiginstance. 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 type-safe, fluent-api builder object to construct a newPromptTemplatingModuleConfiginstance with all required arguments.
-
toMap()instead.