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