public class MessageResponse
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected java.util.List<DialogNodeAction> |
actions |
protected java.lang.Boolean |
alternateIntents |
protected Context |
context |
protected java.util.List<RuntimeEntity> |
entities |
protected MessageInput |
input |
protected java.util.List<RuntimeIntent> |
intents |
protected OutputData |
output |
Constructor and Description |
---|
MessageResponse() |
Modifier and Type | Method and Description |
---|---|
java.util.List<DialogNodeAction> |
getActions()
Gets the actions.
|
Context |
getContext()
Gets the context.
|
java.util.List<RuntimeEntity> |
getEntities()
Gets the entities.
|
MessageInput |
getInput()
Gets the input.
|
java.util.List<RuntimeIntent> |
getIntents()
Gets the intents.
|
OutputData |
getOutput()
Gets the output.
|
java.lang.Boolean |
isAlternateIntents()
Gets the alternateIntents.
|
protected MessageInput input
protected java.util.List<RuntimeIntent> intents
protected java.util.List<RuntimeEntity> entities
@SerializedName(value="alternate_intents") protected java.lang.Boolean alternateIntents
protected Context context
protected OutputData output
protected java.util.List<DialogNodeAction> actions
public MessageInput getInput()
An input object that includes the input text.
public java.util.List<RuntimeIntent> getIntents()
An array of intents recognized in the user input, sorted in descending order of confidence.
public java.util.List<RuntimeEntity> getEntities()
An array of entities identified in the user input.
public java.lang.Boolean isAlternateIntents()
Whether to return more than one intent. A value of `true` indicates that all matching intents are returned.
public Context getContext()
State information for the conversation. To maintain state, include the context from the previous response.
public OutputData getOutput()
An output object that includes the response to the user, the dialog nodes that were triggered, and messages from the log.
public java.util.List<DialogNodeAction> getActions()
An array of objects describing any actions requested by the dialog node.