public class RuntimeResponseGeneric
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Classes which extend this class: - RuntimeResponseGenericRuntimeResponseTypeConversationalSearch - RuntimeResponseGenericRuntimeResponseTypeText - RuntimeResponseGenericRuntimeResponseTypePause - RuntimeResponseGenericRuntimeResponseTypeImage - RuntimeResponseGenericRuntimeResponseTypeOption - RuntimeResponseGenericRuntimeResponseTypeConnectToAgent - RuntimeResponseGenericRuntimeResponseTypeSuggestion - RuntimeResponseGenericRuntimeResponseTypeChannelTransfer - RuntimeResponseGenericRuntimeResponseTypeSearch - RuntimeResponseGenericRuntimeResponseTypeUserDefined - RuntimeResponseGenericRuntimeResponseTypeVideo - RuntimeResponseGenericRuntimeResponseTypeAudio - RuntimeResponseGenericRuntimeResponseTypeIframe - RuntimeResponseGenericRuntimeResponseTypeDate
Modifier and Type | Class and Description |
---|---|
static interface |
RuntimeResponseGeneric.Preference
The preferred type of control to display.
|
Modifier and Type | Method and Description |
---|---|
List<SearchResult> |
additionalResults()
Gets the additionalResults.
|
AgentAvailabilityMessage |
agentAvailable()
Gets the agentAvailable.
|
AgentAvailabilityMessage |
agentUnavailable()
Gets the agentUnavailable.
|
String |
altText()
Gets the altText.
|
Map<String,Object> |
channelOptions()
Gets the channelOptions.
|
List<ResponseGenericChannel> |
channels()
Gets the channels.
|
List<ResponseGenericCitation> |
citations()
Gets the citations.
|
String |
citationsTitle()
Gets the citationsTitle.
|
ResponseGenericConfidenceScores |
confidenceScores()
Gets the confidenceScores.
|
String |
description()
Gets the description.
|
String |
disclaimer()
Gets the disclaimer.
|
String |
header()
Gets the header.
|
String |
imageUrl()
Gets the imageUrl.
|
String |
messageToHumanAgent()
Gets the messageToHumanAgent.
|
String |
messageToUser()
Gets the messageToUser.
|
List<DialogNodeOutputOptionsElement> |
options()
Gets the options.
|
String |
preference()
Gets the preference.
|
List<SearchResult> |
primaryResults()
Gets the primaryResults.
|
String |
responseLengthOption()
Gets the responseLengthOption.
|
String |
responseType()
Gets the responseType.
|
List<SearchResults> |
searchResults()
Gets the searchResults.
|
String |
source()
Gets the source.
|
List<DialogSuggestion> |
suggestions()
Gets the suggestions.
|
String |
text()
Gets the text.
|
Long |
time()
Gets the time.
|
String |
title()
Gets the title.
|
String |
topic()
Gets the topic.
|
Boolean |
typing()
Gets the typing.
|
Map<String,Object> |
userDefined()
Gets the userDefined.
|
public String responseType()
The type of response returned by the dialog node. The specified response type must be supported by the client application or channel.
public String text()
The text of the conversational search response.
public String citationsTitle()
The title of the citations. The default is “How do we know?”. It can be updated in the conversational search user interface.
public List<ResponseGenericCitation> citations()
The citations for the generated response.
public ResponseGenericConfidenceScores confidenceScores()
The confidence scores for determining whether to show the generated response or an “I don't know” response.
public String responseLengthOption()
The response length option. It is used to control the length of the generated response. It is configured either in the user interface or through the Update skill API. For more information, see [watsonx Assistant documentation]( https://cloud.ibm.com/docs/watson-assistant?topic=watson-assistant-conversational-search#tuning-the-generated-response-length-in-conversational-search).
public List<SearchResults> searchResults()
An array of objects containing the search results.
public String disclaimer()
A disclaimer for the conversational search response.
public List<ResponseGenericChannel> channels()
An array of objects specifying channels for which the response is intended. If **channels** is present, the response is intended for a built-in integration and should not be handled by an API client.
public Long time()
How long to pause, in milliseconds.
public Boolean typing()
Whether to send a "user is typing" event during the pause.
public String source()
The `https:` URL of the image.
public String title()
The title to show before the response.
public String description()
The description to show with the the response.
public String altText()
Descriptive text that can be used for screen readers or other situations where the image cannot be seen.
public String preference()
The preferred type of control to display.
public List<DialogNodeOutputOptionsElement> options()
An array of objects describing the options from which the user can choose.
public String messageToHumanAgent()
A message to be sent to the human agent who will be taking over the conversation.
public AgentAvailabilityMessage agentAvailable()
An optional message to be displayed to the user to indicate that the conversation will be transferred to the next available agent.
public AgentAvailabilityMessage agentUnavailable()
An optional message to be displayed to the user to indicate that no online agent is available to take over the conversation.
public String topic()
A label identifying the topic of the conversation, derived from the **title** property of the relevant node or the **topic** property of the dialog node response.
public List<DialogSuggestion> suggestions()
An array of objects describing the possible matching dialog nodes from which the user can choose.
public String messageToUser()
The message to display to the user when initiating a channel transfer.
public String header()
The title or introductory text to show before the response. This text is defined in the search skill configuration.
public List<SearchResult> primaryResults()
An array of objects that contains the search results to be displayed in the initial response to the user.
public List<SearchResult> additionalResults()
An array of objects that contains additional search results that can be displayed to the user upon request.
public Map<String,Object> userDefined()
An object containing any properties for the user-defined response type.
public Map<String,Object> channelOptions()
For internal use only.
public String imageUrl()
The URL of an image that shows a preview of the embedded content.
Copyright © 2025 IBM Cloud. All rights reserved.