Class MessageContextSkillSystem

java.lang.Object
com.ibm.cloud.sdk.core.service.model.DynamicModel<Object>
com.ibm.watson.assistant.v2.model.MessageContextSkillSystem
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class MessageContextSkillSystem
extends com.ibm.cloud.sdk.core.service.model.DynamicModel<Object>
System context data used by the skill.
  • Constructor Details

    • MessageContextSkillSystem

      public MessageContextSkillSystem()
  • Method Details

    • newBuilder

      public MessageContextSkillSystem.Builder newBuilder()
      New builder.
      Returns:
      a MessageContextSkillSystem builder
    • getState

      public String getState()
      Gets the state.

      An encoded string that represents the current conversation state. By saving this value and then sending it in the context of a subsequent message request, you can return to an earlier point in the conversation. If you are using stateful sessions, you can also use a stored state value to restore a paused conversation whose session is expired.

      Returns:
      the state
    • setState

      public void setState​(String state)
      Sets the state.
      Parameters:
      state - the new state