public class MessageResponse
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Method and 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.
|
public MessageInput getInput()
An input object that includes the input text.
public List<RuntimeIntent> getIntents()
An array of intents recognized in the user input, sorted in descending order of confidence.
public List<RuntimeEntity> getEntities()
An array of entities identified in the user input.
public 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 List<DialogNodeAction> getActions()
An array of objects describing any actions requested by the dialog node.
public String getUserId()
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.
Copyright © 2023 IBM Cloud. All rights reserved.