Class CreateSessionOptions

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

public class CreateSessionOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The createSession options.
  • Method Details

    • newBuilder

      public CreateSessionOptions.Builder newBuilder()
      New builder.
      Returns:
      a CreateSessionOptions builder
    • assistantId

      public String assistantId()
      Gets the assistantId.

      Unique identifier of the assistant. To find the assistant ID in the Watson Assistant user interface, open the assistant settings and click **API Details**. For information about creating assistants, see the [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-assistant-add#assistant-add-task).

      **Note:** Currently, the v2 API does not support creating assistants.

      Returns:
      the assistantId