Class MessageResponseStateless

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.assistant.v2.model.MessageResponseStateless
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class MessageResponseStateless
extends com.ibm.cloud.sdk.core.service.model.GenericModel
A stateless response from the Watson Assistant service.
  • Constructor Details

    • MessageResponseStateless

      public MessageResponseStateless()
  • Method Details

    • getOutput

      public MessageOutput getOutput()
      Gets the output.

      Assistant output to be rendered or processed by the client.

      Returns:
      the output
    • getContext

      public MessageContextStateless getContext()
      Gets the context.

      Context data for the conversation. You can use this property to access context variables. The context is not stored by the assistant; to maintain session state, include the context from the response in the next message.

      Returns:
      the context
    • getUserId

      public String getUserId()
      Gets the userId.

      A string value that identifies the user who is interacting with the assistant. 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.global.session_id**.

      **Note:** This property is the same as the **user_id** property in the global system context.

      Returns:
      the userId