Class SingleChatTemplate
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.SingleChatTemplate
- All Implemented Interfaces:
PromptTemplate
SingleChatTemplate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for SingleChatTemplate. -
Method Summary
Modifier and TypeMethodDescriptionSet the content of thisSingleChatTemplateinstance and return the same instance.static SingleChatTemplate.Buildercreate()Create a type-safe, fluent-api builder object to construct a newSingleChatTemplateinstance with all required arguments.booleanGet contentgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theSingleChatTemplate.getRole()Get roleinthashCode()Set the role of thisSingleChatTemplateinstance and return the same instance.voidsetContent(String content) Set the content of thisSingleChatTemplateinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisSingleChatTemplateinstance.voidSet the role of thisSingleChatTemplateinstance.toMap()Get the value of all properties of thisSingleChatTemplateinstance including unrecognized properties.toString()
-
Constructor Details
-
SingleChatTemplate
protected SingleChatTemplate()Default constructor for SingleChatTemplate.
-
-
Method Details
-
role
Set the role of thisSingleChatTemplateinstance and return the same instance.- Parameters:
role- The role of thisSingleChatTemplate- Returns:
- The same instance of this
SingleChatTemplateclass
-
getRole
Get role- Returns:
- role The role of this
SingleChatTemplateinstance.
-
setRole
Set the role of thisSingleChatTemplateinstance.- Parameters:
role- The role of thisSingleChatTemplate
-
content
Set the content of thisSingleChatTemplateinstance and return the same instance.- Parameters:
content- The content of thisSingleChatTemplate- Returns:
- The same instance of this
SingleChatTemplateclass
-
getContent
Get content- Returns:
- content The content of this
SingleChatTemplateinstance.
-
setContent
Set the content of thisSingleChatTemplateinstance.- Parameters:
content- The content of thisSingleChatTemplate
-
getCustomFieldNames
Get the names of the unrecognizable properties of theSingleChatTemplate.- 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 thisSingleChatTemplateinstance.- 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 thisSingleChatTemplateinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisSingleChatTemplateinstance. 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 newSingleChatTemplateinstance with all required arguments.
-
toMap()instead.