Class PartialPromptTemplatingModuleConfig
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.PartialPromptTemplatingModuleConfig
Partial prompt templating configuration for use with config_ref overrides. model is optional so
that only the prompt can be overridden without repeating the model config.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for PartialPromptTemplatingModuleConfig. -
Method Summary
Modifier and TypeMethodDescriptioncreate()Create a newPartialPromptTemplatingModuleConfiginstance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of thePartialPromptTemplatingModuleConfig.getModel()Get modelGet promptinthashCode()model(LLMModelDetails model) Set the model of thisPartialPromptTemplatingModuleConfiginstance and return the same instance.Set the prompt of thisPartialPromptTemplatingModuleConfiginstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisPartialPromptTemplatingModuleConfiginstance.voidsetModel(LLMModelDetails model) Set the model of thisPartialPromptTemplatingModuleConfiginstance.voidSet the prompt of thisPartialPromptTemplatingModuleConfiginstance.toMap()Get the value of all properties of thisPartialPromptTemplatingModuleConfiginstance including unrecognized properties.toString()
-
Constructor Details
-
PartialPromptTemplatingModuleConfig
protected PartialPromptTemplatingModuleConfig()Default constructor for PartialPromptTemplatingModuleConfig.
-
-
Method Details
-
prompt
@Nonnull public PartialPromptTemplatingModuleConfig prompt(@Nullable PartialPromptTemplatingModuleConfigPrompt prompt) Set the prompt of thisPartialPromptTemplatingModuleConfiginstance and return the same instance.- Parameters:
prompt- The prompt of thisPartialPromptTemplatingModuleConfig- Returns:
- The same instance of this
PartialPromptTemplatingModuleConfigclass
-
getPrompt
Get prompt- Returns:
- prompt The prompt of this
PartialPromptTemplatingModuleConfiginstance.
-
setPrompt
Set the prompt of thisPartialPromptTemplatingModuleConfiginstance.- Parameters:
prompt- The prompt of thisPartialPromptTemplatingModuleConfig
-
model
Set the model of thisPartialPromptTemplatingModuleConfiginstance and return the same instance.- Parameters:
model- The model of thisPartialPromptTemplatingModuleConfig- Returns:
- The same instance of this
PartialPromptTemplatingModuleConfigclass
-
getModel
Get model- Returns:
- model The model of this
PartialPromptTemplatingModuleConfiginstance.
-
setModel
Set the model of thisPartialPromptTemplatingModuleConfiginstance.- Parameters:
model- The model of thisPartialPromptTemplatingModuleConfig
-
getCustomFieldNames
Get the names of the unrecognizable properties of thePartialPromptTemplatingModuleConfig.- 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 thisPartialPromptTemplatingModuleConfiginstance.- 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 thisPartialPromptTemplatingModuleConfiginstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisPartialPromptTemplatingModuleConfiginstance. 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 newPartialPromptTemplatingModuleConfiginstance. No arguments are required.
-
toMap()instead.