public class Assistant
extends com.ibm.cloud.sdk.core.service.BaseService
| Constructor and Description | 
|---|
| Assistant(java.lang.String versionDate)Deprecated. 
 Use Assistant(String versionDate, AuthenticatorConfig authenticatorConfig) instead | 
| Assistant(java.lang.String versionDate,
         com.ibm.cloud.sdk.core.security.AuthenticatorConfig authenticatorConfig)Instantiates a new `Assistant` with the specified authentication configuration. | 
| Assistant(java.lang.String versionDate,
         java.lang.String username,
         java.lang.String password)Deprecated. 
 Use Assistant(String versionDate, AuthenticatorConfig authenticatorConfig) instead | 
| 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. | 
configureClient, configureHttpClient, createServiceCall, getApiKey, getAuthenticator, getClient, getEndPoint, getName, getPassword, getUsername, isJsonMimeType, isJsonPatchMimeType, isSkipAuthentication, isTokenManagerSet, processServiceCall, setApiKey, setAuthentication, setAuthenticator, setClient, setDefaultHeaders, setDefaultHeaders, setEndPoint, setIamCredentials, setSkipAuthentication, setUsernameAndPassword, toString@Deprecated public Assistant(java.lang.String versionDate)
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.@Deprecated
public Assistant(java.lang.String versionDate,
                             java.lang.String username,
                             java.lang.String password)
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.username - the usernamepassword - the passwordpublic Assistant(java.lang.String versionDate,
                 com.ibm.cloud.sdk.core.security.AuthenticatorConfig authenticatorConfig)
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.authenticatorConfig - the authentication configuration for this servicepublic com.ibm.cloud.sdk.core.http.ServiceCall<SessionResponse> createSession(CreateSessionOptions createSessionOptions)
createSessionOptions - the CreateSessionOptions containing the options for the callServiceCall with a response type of SessionResponsepublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteSession(DeleteSessionOptions deleteSessionOptions)
deleteSessionOptions - the DeleteSessionOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<MessageResponse> message(MessageOptions messageOptions)
messageOptions - the MessageOptions containing the options for the callServiceCall with a response type of MessageResponse