Class MultiChatTemplate
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.MultiChatTemplate
- All Implemented Interfaces:
PromptTemplate
MultiChatTemplate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for MultiChatTemplate. -
Method Summary
Modifier and TypeMethodDescriptionaddContentItem(MultiChatContent contentItem) Add one content instance to thisMultiChatTemplate.content(List<MultiChatContent> content) Set the content of thisMultiChatTemplateinstance and return the same instance.static MultiChatTemplate.Buildercreate()Create a type-safe, fluent-api builder object to construct a newMultiChatTemplateinstance with all required arguments.booleanGet contentgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theMultiChatTemplate.getRole()Get roleinthashCode()Set the role of thisMultiChatTemplateinstance and return the same instance.voidsetContent(List<MultiChatContent> content) Set the content of thisMultiChatTemplateinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisMultiChatTemplateinstance.voidSet the role of thisMultiChatTemplateinstance.toMap()Get the value of all properties of thisMultiChatTemplateinstance including unrecognized properties.toString()
-
Constructor Details
-
MultiChatTemplate
protected MultiChatTemplate()Default constructor for MultiChatTemplate.
-
-
Method Details
-
role
Set the role of thisMultiChatTemplateinstance and return the same instance.- Parameters:
role- The role of thisMultiChatTemplate- Returns:
- The same instance of this
MultiChatTemplateclass
-
getRole
Get role- Returns:
- role The role of this
MultiChatTemplateinstance.
-
setRole
Set the role of thisMultiChatTemplateinstance.- Parameters:
role- The role of thisMultiChatTemplate
-
content
Set the content of thisMultiChatTemplateinstance and return the same instance.- Parameters:
content- The content of thisMultiChatTemplate- Returns:
- The same instance of this
MultiChatTemplateclass
-
addContentItem
Add one content instance to thisMultiChatTemplate.- Parameters:
contentItem- The content that should be added- Returns:
- The same instance of type
MultiChatTemplate
-
getContent
Get content- Returns:
- content The content of this
MultiChatTemplateinstance.
-
setContent
Set the content of thisMultiChatTemplateinstance.- Parameters:
content- The content of thisMultiChatTemplate
-
getCustomFieldNames
Get the names of the unrecognizable properties of theMultiChatTemplate.- 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 thisMultiChatTemplateinstance.- 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 thisMultiChatTemplateinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisMultiChatTemplateinstance. 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 newMultiChatTemplateinstance with all required arguments.
-
toMap()instead.