Class MessageResponse
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class MessageResponse
extends com.ibm.cloud.sdk.core.service.model.GenericModel
-
Constructor Summary
Constructors Constructor Description MessageResponse()
-
Method Summary
Modifier and Type Method Description List<DialogNodeAction>
getActions()
Gets the actions.Context
getContext()
Gets the context.List<RuntimeEntity>
getEntities()
Gets the entities.MessageInput
getInput()
Gets the input.List<RuntimeIntent>
getIntents()
Gets the intents.OutputData
getOutput()
Gets the output.String
getUserId()
Gets the userId.Boolean
isAlternateIntents()
Gets the alternateIntents.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
MessageResponse
public MessageResponse()
-
-
Method Details
-
getInput
Gets the input.An input object that includes the input text.
- Returns:
- the input
-
getIntents
Gets the intents.An array of intents recognized in the user input, sorted in descending order of confidence.
- Returns:
- the intents
-
getEntities
Gets the entities.An array of entities identified in the user input.
- Returns:
- the entities
-
isAlternateIntents
Gets the alternateIntents.Whether to return more than one intent. A value of `true` indicates that all matching intents are returned.
- Returns:
- the alternateIntents
-
getContext
Gets the context.State information for the conversation. To maintain state, include the context from the previous response.
- Returns:
- the context
-
getOutput
Gets the output.An output object that includes the response to the user, the dialog nodes that were triggered, and messages from the log.
- Returns:
- the output
-
getActions
Gets the actions.An array of objects describing any actions requested by the dialog node.
- Returns:
- the actions
-
getUserId
Gets the userId.A string value that identifies the user who is interacting with the workspace. The client must provide a unique identifier for each individual end user who accesses the application. For user-based plans, this user ID is used to identify unique users for billing purposes. This string cannot contain carriage return, newline, or tab characters. If no value is specified in the input, **user_id** is automatically set to the value of **context.conversation_id**.
**Note:** This property is the same as the **user_id** property in the context metadata. If **user_id** is specified in both locations in a message request, the value specified at the root is used.
- Returns:
- the userId
-