@Beta public class DialogResponseWrapper extends Object
Be aware that this class is in Beta (as indicated by the annotation) and therefore subject to breaking changes.
Constructor and Description |
---|
DialogResponseWrapper() |
Modifier and Type | Method and Description |
---|---|
String |
getConversationId()
Getter of the conversation id.
|
String |
getLanguage()
This is the Getter for the Language and follows the ISO abbreviation standard.
|
Map<String,Object> |
getMemory()
Returns the memory of this dialog response
|
TextResponse |
getMessage()
This returns the current text response which would be sent to the dialog.
|
String |
getResponse()
This function generates the json representation of this object and returns it as a string to the user.
|
void |
setConversationId(String conversationId)
Setter for the conversation id.
|
void |
setLanguage(String language)
This function replaces the current language of the response
|
void |
setMemory(Map<String,Object> memory)
Setter to replace the current memory with a new memory.
|
void |
setMessage(TextResponse message)
Replaces the current TextResponse object with the new given TextResponse
|
@Nullable public String getResponse()
@Nullable public Map<String,Object> getMemory()
public void setMemory(@Nullable Map<String,Object> memory)
memory
- a memory containing the new memory@Nullable public String getConversationId()
public void setConversationId(@Nullable String conversationId)
conversationId
- the conversation id as a string@Nullable public String getLanguage()
public void setLanguage(@Nullable String language)
language
- a string abbreviation of the language@Nullable public TextResponse getMessage()
public void setMessage(@Nullable TextResponse message)
message
- the next TextResponse for this dialog.Copyright © 2020 SAP SE. All rights reserved.