public class Assistant
extends com.ibm.cloud.sdk.core.service.BaseService
The Assistant v2 API provides runtime methods your client application can use to send user input to an assistant and receive a response.
You need a paid Plus plan or higher to use the watsonx Assistant v2 API.
API Version: 2.0 See: https://cloud.ibm.com/docs/assistant
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SERVICE_NAME
Default service name used when configuring the `Assistant` client.
|
static String |
DEFAULT_SERVICE_URL
Default service endpoint URL.
|
Constructor and Description |
---|
Assistant(String version)
Constructs an instance of the `Assistant` client.
|
Assistant(String version,
com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs an instance of the `Assistant` client.
|
Assistant(String version,
String serviceName)
Constructs an instance of the `Assistant` client.
|
Assistant(String version,
String serviceName,
com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs an instance of the `Assistant` client.
|
Modifier and Type | Method and Description |
---|---|
com.ibm.cloud.sdk.core.http.ServiceCall<BulkClassifyResponse> |
bulkClassify(BulkClassifyOptions bulkClassifyOptions)
Identify intents and entities in multiple user utterances.
|
com.ibm.cloud.sdk.core.http.ServiceCall<AssistantData> |
createAssistant()
Create an assistant.
|
com.ibm.cloud.sdk.core.http.ServiceCall<AssistantData> |
createAssistant(CreateAssistantOptions createAssistantOptions)
Create an assistant.
|
com.ibm.cloud.sdk.core.http.ServiceCall<ProviderResponse> |
createProvider(CreateProviderOptions createProviderOptions)
Create a conversational skill provider.
|
com.ibm.cloud.sdk.core.http.ServiceCall<Release> |
createRelease(CreateReleaseOptions createReleaseOptions)
Create release.
|
com.ibm.cloud.sdk.core.http.ServiceCall<CreateReleaseExportWithStatusErrors> |
createReleaseExport(CreateReleaseExportOptions createReleaseExportOptions)
Create release export.
|
com.ibm.cloud.sdk.core.http.ServiceCall<CreateAssistantReleaseImportResponse> |
createReleaseImport(CreateReleaseImportOptions createReleaseImportOptions)
Create release import.
|
com.ibm.cloud.sdk.core.http.ServiceCall<SessionResponse> |
createSession(CreateSessionOptions createSessionOptions)
Create a session.
|
com.ibm.cloud.sdk.core.http.ServiceCall<Void> |
deleteAssistant(DeleteAssistantOptions deleteAssistantOptions)
Delete assistant.
|
com.ibm.cloud.sdk.core.http.ServiceCall<Void> |
deleteRelease(DeleteReleaseOptions deleteReleaseOptions)
Delete release.
|
com.ibm.cloud.sdk.core.http.ServiceCall<Void> |
deleteSession(DeleteSessionOptions deleteSessionOptions)
Delete session.
|
com.ibm.cloud.sdk.core.http.ServiceCall<Void> |
deleteUserData(DeleteUserDataOptions deleteUserDataOptions)
Delete labeled data.
|
com.ibm.cloud.sdk.core.http.ServiceCall<Environment> |
deployRelease(DeployReleaseOptions deployReleaseOptions)
Deploy release.
|
com.ibm.cloud.sdk.core.http.ServiceCall<CreateReleaseExportWithStatusErrors> |
downloadReleaseExport(DownloadReleaseExportOptions downloadReleaseExportOptions)
Get release export.
|
com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> |
downloadReleaseExportAsStream(DownloadReleaseExportOptions downloadReleaseExportOptions)
Get release export as stream.
|
com.ibm.cloud.sdk.core.http.ServiceCall<SkillsExport> |
exportSkills(ExportSkillsOptions exportSkillsOptions)
Export skills.
|
com.ibm.cloud.sdk.core.http.ServiceCall<Environment> |
getEnvironment(GetEnvironmentOptions getEnvironmentOptions)
Get environment.
|
com.ibm.cloud.sdk.core.http.ServiceCall<Release> |
getRelease(GetReleaseOptions getReleaseOptions)
Get release.
|
com.ibm.cloud.sdk.core.http.ServiceCall<MonitorAssistantReleaseImportArtifactResponse> |
getReleaseImportStatus(GetReleaseImportStatusOptions getReleaseImportStatusOptions)
Get release import Status.
|
com.ibm.cloud.sdk.core.http.ServiceCall<Skill> |
getSkill(GetSkillOptions getSkillOptions)
Get skill.
|
String |
getVersion()
Gets the version.
|
com.ibm.cloud.sdk.core.http.ServiceCall<SkillsAsyncRequestStatus> |
importSkills(ImportSkillsOptions importSkillsOptions)
Import skills.
|
com.ibm.cloud.sdk.core.http.ServiceCall<SkillsAsyncRequestStatus> |
importSkillsStatus(ImportSkillsStatusOptions importSkillsStatusOptions)
Get status of skills import.
|
com.ibm.cloud.sdk.core.http.ServiceCall<AssistantCollection> |
listAssistants()
List assistants.
|
com.ibm.cloud.sdk.core.http.ServiceCall<AssistantCollection> |
listAssistants(ListAssistantsOptions listAssistantsOptions)
List assistants.
|
com.ibm.cloud.sdk.core.http.ServiceCall<EnvironmentCollection> |
listEnvironments(ListEnvironmentsOptions listEnvironmentsOptions)
List environments.
|
com.ibm.cloud.sdk.core.http.ServiceCall<LogCollection> |
listLogs(ListLogsOptions listLogsOptions)
List log events for an assistant.
|
com.ibm.cloud.sdk.core.http.ServiceCall<ProviderCollection> |
listProviders()
List conversational skill providers.
|
com.ibm.cloud.sdk.core.http.ServiceCall<ProviderCollection> |
listProviders(ListProvidersOptions listProvidersOptions)
List conversational skill providers.
|
com.ibm.cloud.sdk.core.http.ServiceCall<ReleaseCollection> |
listReleases(ListReleasesOptions listReleasesOptions)
List releases.
|
com.ibm.cloud.sdk.core.http.ServiceCall<StatefulMessageResponse> |
message(MessageOptions messageOptions)
Send user input to assistant (stateful).
|
com.ibm.cloud.sdk.core.http.ServiceCall<StatelessMessageResponse> |
messageStateless(MessageStatelessOptions messageStatelessOptions)
Send user input to assistant (stateless).
|
com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> |
messageStream(MessageStreamOptions messageStreamOptions)
Send user input to assistant (stateful).
|
com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> |
messageStreamStateless(MessageStreamStatelessOptions messageStreamStatelessOptions)
Send user input to assistant (stateless).
|
void |
setVersion(String version)
Sets the version.
|
com.ibm.cloud.sdk.core.http.ServiceCall<Environment> |
updateEnvironment(UpdateEnvironmentOptions updateEnvironmentOptions)
Update environment.
|
com.ibm.cloud.sdk.core.http.ServiceCall<ProviderResponse> |
updateProvider(UpdateProviderOptions updateProviderOptions)
Update a conversational skill provider.
|
com.ibm.cloud.sdk.core.http.ServiceCall<Skill> |
updateSkill(UpdateSkillOptions updateSkillOptions)
Update skill.
|
configureClient, configureService, constructServiceUrl, constructServiceURL, disableRetries, enableGzipCompression, enableRetries, getAuthenticator, getClient, getDefaultHeaders, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toString
public static final String DEFAULT_SERVICE_NAME
public static final String DEFAULT_SERVICE_URL
public Assistant(String version)
version
- Release date of the API version you want to use. Specify dates in YYYY-MM-DD
format. The current version is `2023-06-15`.public Assistant(String version, com.ibm.cloud.sdk.core.security.Authenticator authenticator)
version
- Release date of the API version you want to use. Specify dates in YYYY-MM-DD
format. The current version is `2023-06-15`.authenticator
- the Authenticator
instance to be configured for this clientpublic Assistant(String version, String serviceName)
version
- Release date of the API version you want to use. Specify dates in YYYY-MM-DD
format. The current version is `2023-06-15`.serviceName
- the service name to be used when configuring the client instancepublic Assistant(String version, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)
version
- Release date of the API version you want to use. Specify dates in YYYY-MM-DD
format. The current version is `2023-06-15`.serviceName
- the service name to be used when configuring the client instanceauthenticator
- the Authenticator
instance to be configured for this clientpublic String getVersion()
Release date of the API version you want to use. Specify dates in YYYY-MM-DD format. The current version is `2023-06-15`.
public void setVersion(String version)
version
- the new versionpublic com.ibm.cloud.sdk.core.http.ServiceCall<ProviderResponse> createProvider(CreateProviderOptions createProviderOptions)
Create a new conversational skill provider.
createProviderOptions
- the CreateProviderOptions
containing the options for the
callServiceCall
with a result of type ProviderResponse
public com.ibm.cloud.sdk.core.http.ServiceCall<ProviderCollection> listProviders(ListProvidersOptions listProvidersOptions)
List the conversational skill providers associated with a Watson Assistant service instance.
listProvidersOptions
- the ListProvidersOptions
containing the options for the
callServiceCall
with a result of type ProviderCollection
public com.ibm.cloud.sdk.core.http.ServiceCall<ProviderCollection> listProviders()
List the conversational skill providers associated with a Watson Assistant service instance.
ServiceCall
with a result of type ProviderCollection
public com.ibm.cloud.sdk.core.http.ServiceCall<ProviderResponse> updateProvider(UpdateProviderOptions updateProviderOptions)
Update a new conversational skill provider.
updateProviderOptions
- the UpdateProviderOptions
containing the options for the
callServiceCall
with a result of type ProviderResponse
public com.ibm.cloud.sdk.core.http.ServiceCall<AssistantData> createAssistant(CreateAssistantOptions createAssistantOptions)
Create a new assistant.
createAssistantOptions
- the CreateAssistantOptions
containing the options for the
callServiceCall
with a result of type AssistantData
public com.ibm.cloud.sdk.core.http.ServiceCall<AssistantData> createAssistant()
Create a new assistant.
ServiceCall
with a result of type AssistantData
public com.ibm.cloud.sdk.core.http.ServiceCall<AssistantCollection> listAssistants(ListAssistantsOptions listAssistantsOptions)
List the assistants associated with a watsonx Assistant service instance.
listAssistantsOptions
- the ListAssistantsOptions
containing the options for the
callServiceCall
with a result of type AssistantCollection
public com.ibm.cloud.sdk.core.http.ServiceCall<AssistantCollection> listAssistants()
List the assistants associated with a watsonx Assistant service instance.
ServiceCall
with a result of type AssistantCollection
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteAssistant(DeleteAssistantOptions deleteAssistantOptions)
Delete an assistant.
deleteAssistantOptions
- the DeleteAssistantOptions
containing the options for the
callServiceCall
with a void resultpublic com.ibm.cloud.sdk.core.http.ServiceCall<SessionResponse> createSession(CreateSessionOptions createSessionOptions)
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/assistant?topic=assistant-assistant-settings).).
createSessionOptions
- the CreateSessionOptions
containing the options for the
callServiceCall
with a result of type SessionResponse
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteSession(DeleteSessionOptions deleteSessionOptions)
Deletes a session explicitly before it times out. (For more information about the session inactivity timeout, see the [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-assistant-settings)).
deleteSessionOptions
- the DeleteSessionOptions
containing the options for the
callServiceCall
with a void resultpublic com.ibm.cloud.sdk.core.http.ServiceCall<StatefulMessageResponse> message(MessageOptions messageOptions)
Send user input to an assistant and receive a response, with conversation state (including context data) stored by watsonx Assistant for the duration of the session.
messageOptions
- the MessageOptions
containing the options for the callServiceCall
with a result of type StatefulMessageResponse
public com.ibm.cloud.sdk.core.http.ServiceCall<StatelessMessageResponse> messageStateless(MessageStatelessOptions messageStatelessOptions)
Send user input to an assistant and receive a response, with conversation state (including context data) managed by your application.
messageStatelessOptions
- the MessageStatelessOptions
containing the options for
the callServiceCall
with a result of type StatelessMessageResponse
public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> messageStream(MessageStreamOptions messageStreamOptions)
Send user input to an assistant and receive a streamed response, with conversation state (including context data) stored by watsonx Assistant for the duration of the session.
messageStreamOptions
- the MessageStreamOptions
containing the options for the
callServiceCall
with a result of type InputStream
public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> messageStreamStateless(MessageStreamStatelessOptions messageStreamStatelessOptions)
Send user input to an assistant and receive a response, with conversation state (including context data) managed by your application.
messageStreamStatelessOptions
- the MessageStreamStatelessOptions
containing the
options for the callServiceCall
with a result of type InputStream
public com.ibm.cloud.sdk.core.http.ServiceCall<BulkClassifyResponse> bulkClassify(BulkClassifyOptions bulkClassifyOptions)
Send multiple user inputs to a dialog skill in a single request and receive information about the intents and entities recognized in each input. This method is useful for testing and comparing the performance of different skills or skill versions.
This method is available only with Enterprise with Data Isolation plans.
bulkClassifyOptions
- the BulkClassifyOptions
containing the options for the callServiceCall
with a result of type BulkClassifyResponse
public com.ibm.cloud.sdk.core.http.ServiceCall<LogCollection> listLogs(ListLogsOptions listLogsOptions)
List the events from the log of an assistant.
This method requires Manager access.
**Note:** If you use the **cursor** parameter to retrieve results one page at a time, subsequent requests must be no more than 5 minutes apart. Any returned value for the **cursor** parameter becomes invalid after 5 minutes. For more information about using pagination, see [Pagination](#pagination).
listLogsOptions
- the ListLogsOptions
containing the options for the callServiceCall
with a result of type LogCollection
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteUserData(DeleteUserDataOptions deleteUserDataOptions)
Deletes all data associated with a specified customer ID. The method has no effect if no data is associated with the customer ID.
You associate a customer ID with data by passing the `X-Watson-Metadata` header with a request that passes data. For more information about personal data and customer IDs, see [Information security](https://cloud.ibm.com/docs/assistant?topic=assistant-information-security#information-security).
**Note:** This operation is intended only for deleting data associated with a single specific customer, not for deleting data associated with multiple customers or for any other purpose. For more information, see [Labeling and deleting data in watsonx Assistant](https://cloud.ibm.com/docs/assistant?topic=assistant-information-security#information-security-gdpr-wa).
deleteUserDataOptions
- the DeleteUserDataOptions
containing the options for the
callServiceCall
with a void resultpublic com.ibm.cloud.sdk.core.http.ServiceCall<EnvironmentCollection> listEnvironments(ListEnvironmentsOptions listEnvironmentsOptions)
List the environments associated with an assistant.
listEnvironmentsOptions
- the ListEnvironmentsOptions
containing the options for
the callServiceCall
with a result of type EnvironmentCollection
public com.ibm.cloud.sdk.core.http.ServiceCall<Environment> getEnvironment(GetEnvironmentOptions getEnvironmentOptions)
Get information about an environment. For more information about environments, see [Environments](https://cloud.ibm.com/docs/watson-assistant?topic=watson-assistant-publish-overview#environments).
getEnvironmentOptions
- the GetEnvironmentOptions
containing the options for the
callServiceCall
with a result of type Environment
public com.ibm.cloud.sdk.core.http.ServiceCall<Environment> updateEnvironment(UpdateEnvironmentOptions updateEnvironmentOptions)
Update an environment with new or modified data. For more information about environments, see [Environments](https://cloud.ibm.com/docs/watson-assistant?topic=watson-assistant-publish-overview#environments).
updateEnvironmentOptions
- the UpdateEnvironmentOptions
containing the options for
the callServiceCall
with a result of type Environment
public com.ibm.cloud.sdk.core.http.ServiceCall<Release> createRelease(CreateReleaseOptions createReleaseOptions)
Create a new release using the current content of the dialog and action skills in the draft environment. (In the watsonx Assistant user interface, a release is called a *version*.).
createReleaseOptions
- the CreateReleaseOptions
containing the options for the
callServiceCall
with a result of type Release
public com.ibm.cloud.sdk.core.http.ServiceCall<ReleaseCollection> listReleases(ListReleasesOptions listReleasesOptions)
List the releases associated with an assistant. (In the watsonx Assistant user interface, a release is called a *version*.).
listReleasesOptions
- the ListReleasesOptions
containing the options for the callServiceCall
with a result of type ReleaseCollection
public com.ibm.cloud.sdk.core.http.ServiceCall<Release> getRelease(GetReleaseOptions getReleaseOptions)
Get information about a release.
Release data is not available until publishing of the release completes. If publishing is still in progress, you can continue to poll by calling the same request again and checking the value of the **status** property. When processing has completed, the request returns the release data.
getReleaseOptions
- the GetReleaseOptions
containing the options for the callServiceCall
with a result of type Release
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteRelease(DeleteReleaseOptions deleteReleaseOptions)
Delete a release. (In the watsonx Assistant user interface, a release is called a *version*.).
deleteReleaseOptions
- the DeleteReleaseOptions
containing the options for the
callServiceCall
with a void resultpublic com.ibm.cloud.sdk.core.http.ServiceCall<Environment> deployRelease(DeployReleaseOptions deployReleaseOptions)
Update the environment with the content of the release. All snapshots saved as part of the release become active in the environment.
deployReleaseOptions
- the DeployReleaseOptions
containing the options for the
callServiceCall
with a result of type Environment
public com.ibm.cloud.sdk.core.http.ServiceCall<CreateReleaseExportWithStatusErrors> createReleaseExport(CreateReleaseExportOptions createReleaseExportOptions)
Initiate an asynchronous process which will create a downloadable Zip file artifact (/package) for an assistant release. This artifact will contain Action and/or Dialog skills that are part of the release. The Dialog skill will only be included in the event that coexistence is enabled on the assistant. The expected workflow with the use of Release Export endpoint is to first initiate the creation of the artifact with the POST endpoint and then poll the GET endpoint to retrieve the artifact. Once the artifact has been created, it will last for the duration (/scope) of the release.
createReleaseExportOptions
- the CreateReleaseExportOptions
containing the options
for the callServiceCall
with a result of type CreateReleaseExportWithStatusErrors
public com.ibm.cloud.sdk.core.http.ServiceCall<CreateReleaseExportWithStatusErrors> downloadReleaseExport(DownloadReleaseExportOptions downloadReleaseExportOptions)
A dual function endpoint to either retrieve the Zip file artifact that is associated with an assistant release or, retrieve the status of the artifact's creation. It is assumed that the artifact creation was already initiated prior to calling this endpoint. In the event that the artifact is not yet created and ready for download, this endpoint can be used to poll the system until the creation is completed or has failed. On the other hand, if the artifact is created, this endpoint will return the Zip file artifact as an octet stream. Once the artifact has been created, it will last for the duration (/scope) of the release. <br /><br /> When you will have downloaded the Zip file artifact, you have one of three ways to import it into an assistant's draft environment. These are as follows. <br /><ol><li>Import the zip package in Tooling via <var>"Assistant Settings" -> "Download/Upload files" -> "Upload" -> "Assistant only"</var>.</li><li>Import the zip package via "Create release import" endpoint using the APIs.</li><li>Extract the contents of the Zip file artifact and individually import the skill JSONs via skill update endpoints.</li></ol>.
downloadReleaseExportOptions
- the DownloadReleaseExportOptions
containing the
options for the callServiceCall
with a result of type CreateReleaseExportWithStatusErrors
public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> downloadReleaseExportAsStream(DownloadReleaseExportOptions downloadReleaseExportOptions)
A dual function endpoint to either retrieve the Zip file artifact that is associated with an assistant release or, retrieve the status of the artifact's creation. It is assumed that the artifact creation was already initiated prior to calling this endpoint. In the event that the artifact is not yet created and ready for download, this endpoint can be used to poll the system until the creation is completed or has failed. On the other hand, if the artifact is created, this endpoint will return the Zip file artifact as an octet stream. Once the artifact has been created, it will last for the duration (/scope) of the release. <br /><br /> When you will have downloaded the Zip file artifact, you have one of three ways to import it into an assistant's draft environment. These are as follows. <br /><ol><li>Import the zip package in Tooling via <var>"Assistant Settings" -> "Download/Upload files" -> "Upload" -> "Assistant only"</var>.</li><li>Import the zip package via "Create release import" endpoint using the APIs.</li><li>Extract the contents of the Zip file artifact and individually import the skill JSONs via skill update endpoints.</li></ol>.
downloadReleaseExportOptions
- the DownloadReleaseExportOptions
containing the
options for the callServiceCall
with a result of type InputStream
public com.ibm.cloud.sdk.core.http.ServiceCall<CreateAssistantReleaseImportResponse> createReleaseImport(CreateReleaseImportOptions createReleaseImportOptions)
Import a previously exported assistant release Zip file artifact (/package) into an assistant. This endpoint creates (/initiates) an asynchronous task (/job) in the background which will import the artifact contents into the draft environment of the assistant on which this endpoint is called. Specifically, the asynchronous operation will override the action and/or dialog skills in the assistant. It will be worth noting that when the artifact that is provided to this endpoint is from an assistant release which has coexistence enabled (i.e., it has both action and dialog skills), the import process will automatically enable coexistence, if not already enabled, on the assistant into which said artifact is being uploaded to. On the other hand, if the artifact package being imported only has action skill in it, the import asynchronous process will only override the draft environment's action skill, regardless of whether coexistence is enabled on the assistant into which the package is being imported. Lastly, the system will only run one asynchronous import at a time on an assistant. As such, consecutive imports will override previous import's updates to the skills in the draft environment. Once created, you may poll the completion of the import via the "Get release import Status" endpoint.
createReleaseImportOptions
- the CreateReleaseImportOptions
containing the options
for the callServiceCall
with a result of type CreateAssistantReleaseImportResponse
public com.ibm.cloud.sdk.core.http.ServiceCall<MonitorAssistantReleaseImportArtifactResponse> getReleaseImportStatus(GetReleaseImportStatusOptions getReleaseImportStatusOptions)
Monitor the status of an assistant release import. You may poll this endpoint until the status of the import has either succeeded or failed.
getReleaseImportStatusOptions
- the GetReleaseImportStatusOptions
containing the
options for the callServiceCall
with a result of type MonitorAssistantReleaseImportArtifactResponse
public com.ibm.cloud.sdk.core.http.ServiceCall<Skill> getSkill(GetSkillOptions getSkillOptions)
Get information about a skill.
getSkillOptions
- the GetSkillOptions
containing the options for the callServiceCall
with a result of type Skill
public com.ibm.cloud.sdk.core.http.ServiceCall<Skill> updateSkill(UpdateSkillOptions updateSkillOptions)
Update a skill with new or modified data.
**Note:** The update is performed asynchronously; you can see the status of the update by calling the **Get skill** method and checking the value of the **status** property.
updateSkillOptions
- the UpdateSkillOptions
containing the options for the callServiceCall
with a result of type Skill
public com.ibm.cloud.sdk.core.http.ServiceCall<SkillsExport> exportSkills(ExportSkillsOptions exportSkillsOptions)
Asynchronously export the action skill and dialog skill (if enabled) for the assistant. Use this method to save all skill data so that you can import it to a different assistant using the **Import skills** method.
A successful call to this method only initiates an asynchronous export. The exported JSON data is not available until processing completes.
After the initial request is submitted, you can poll the status of the operation by calling the same request again and checking the value of the **status** property. If an error occurs (indicated by a **status** value of `Failed`), the `status_description` property provides more information about the error, and the `status_errors` property contains an array of error messages that caused the failure.
When processing has completed, the request returns the exported JSON data. Remember that the usual rate limits apply.
exportSkillsOptions
- the ExportSkillsOptions
containing the options for the callServiceCall
with a result of type SkillsExport
public com.ibm.cloud.sdk.core.http.ServiceCall<SkillsAsyncRequestStatus> importSkills(ImportSkillsOptions importSkillsOptions)
Asynchronously import skills into an existing assistant from a previously exported file.
The request body for this method should contain the response data that was received from a previous call to the **Export skills** method, without modification.
A successful call to this method initiates an asynchronous import. The updated skills belonging to the assistant are not available until processing completes. To check the status of the asynchronous import operation, use the **Get status of skills import** method.
importSkillsOptions
- the ImportSkillsOptions
containing the options for the callServiceCall
with a result of type SkillsAsyncRequestStatus
public com.ibm.cloud.sdk.core.http.ServiceCall<SkillsAsyncRequestStatus> importSkillsStatus(ImportSkillsStatusOptions importSkillsStatusOptions)
Retrieve the status of an asynchronous import operation previously initiated by using the **Import skills** method.
importSkillsStatusOptions
- the ImportSkillsStatusOptions
containing the options
for the callServiceCall
with a result of type SkillsAsyncRequestStatus
Copyright © 2024 IBM Cloud. All rights reserved.