Class Context

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

public class Context
extends com.ibm.cloud.sdk.core.service.model.DynamicModel<Object>
State information for the conversation. To maintain state, include the context from the previous response.
  • Constructor Details

    • Context

      public Context()
  • Method Details

    • newBuilder

      public Context.Builder newBuilder()
      New builder.
      Returns:
      a Context builder
    • getConversationId

      public String getConversationId()
      Gets the conversationId.

      The unique identifier of the conversation.

      Returns:
      the conversationId
    • setConversationId

      public void setConversationId​(String conversationId)
      Sets the conversationId.
      Parameters:
      conversationId - the new conversationId
    • getSystem

      public Map<String,​Object> getSystem()
      Gets the system.

      For internal use only.

      Returns:
      the system
    • setSystem

      public void setSystem​(Map<String,​Object> system)
      Sets the system.
      Parameters:
      system - the new system
    • getMetadata

      public MessageContextMetadata getMetadata()
      Gets the metadata.

      Metadata related to the message.

      Returns:
      the metadata
    • setMetadata

      public void setMetadata​(MessageContextMetadata metadata)
      Sets the metadata.
      Parameters:
      metadata - the new metadata