JavaScript is disabled on your browser.
com.ibm.watson.assistant.v2

Class Assistant



  • public class Assistant
    extends com.ibm.cloud.sdk.core.service.BaseService
    The IBM Watson™ Assistant service combines machine learning, natural language understanding, and an integrated dialog editor to create conversation flows between your apps and your users. The Assistant v2 API provides runtime methods your client application can use to send user input to an assistant and receive a response.
    See Also:
    Assistant
    • Field Summary

      • Fields inherited from class com.ibm.cloud.sdk.core.service.BaseService

        JSON_MIME_PATTERN, JSON_PATCH_MIME_PATTERN, PROPNAME_DISABLE_SSL, PROPNAME_URL
    • Constructor Summary

      Constructors
      Constructor and Description
      Assistant (java.lang.String versionDate)
      Constructs a new `Assistant` client.
      Assistant (java.lang.String versionDate, com.ibm.cloud.sdk.core.security.Authenticator authenticator)
      Constructs a new `Assistant` client with the specified Authenticator.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      com.ibm.cloud.sdk.core.http.ServiceCall<SessionResponse> createSession (CreateSessionOptions createSessionOptions)
      Create a session.
      com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteSession (DeleteSessionOptions deleteSessionOptions)
      Delete session.
      com.ibm.cloud.sdk.core.http.ServiceCall<MessageResponse> message (MessageOptions messageOptions)
      Send user input to assistant.
      • Methods inherited from class com.ibm.cloud.sdk.core.service.BaseService

        configureClient, configureHttpClient, configureService, createServiceCall, getAuthenticator, getClient, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, processServiceCall, setAuthentication, setClient, setDefaultHeaders, setDefaultHeaders, setEndPoint, setServiceUrl, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Assistant

        public Assistant(java.lang.String versionDate)
        Constructs a new `Assistant` client.
        Parameters:
        versionDate - The version date (yyyy-MM-dd) of the REST API to use. Specifying this value will keep your API calls from failing when the service introduces breaking changes.
      • Assistant

        public Assistant(java.lang.String versionDate,
         com.ibm.cloud.sdk.core.security.Authenticator authenticator)
        Constructs a new `Assistant` client with the specified Authenticator.
        Parameters:
        versionDate - The version date (yyyy-MM-dd) of the REST API to use. Specifying this value will keep your API calls from failing when the service introduces breaking changes.
        authenticator - the Authenticator instance to be configured for this service
    • Method Detail

      • createSession

        public com.ibm.cloud.sdk.core.http.ServiceCall<SessionResponse> createSession(CreateSessionOptions createSessionOptions)
        Create a session. Create a new session. A session is used to send user input to a skill and receive responses. It also maintains the state of the conversation. A session persists until it is deleted, or until it times out because of inactivity. (For more information, see the [documentation](https://cloud.ibm.com/docs/services/assistant?topic=assistant-assistant-settings).
        Parameters:
        createSessionOptions - the CreateSessionOptions containing the options for the call
        Returns:
        a ServiceCall with a response type of SessionResponse
      • deleteSession

        public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteSession(DeleteSessionOptions deleteSessionOptions)
        Delete session. Deletes a session explicitly before it times out. (For more information about the session inactivity timeout, see the [documentation](https://cloud.ibm.com/docs/services/assistant?topic=assistant-assistant-settings)).
        Parameters:
        deleteSessionOptions - the DeleteSessionOptions containing the options for the call
        Returns:
        a ServiceCall with a response type of Void
      • message

        public com.ibm.cloud.sdk.core.http.ServiceCall<MessageResponse> message(MessageOptions messageOptions)
        Send user input to assistant. Send user input to an assistant and receive a response. There is no rate limit for this operation.
        Parameters:
        messageOptions - the MessageOptions containing the options for the call
        Returns:
        a ServiceCall with a response type of MessageResponse

AltStyle によって変換されたページ (->オリジナル) /