public class MessageStatelessOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
MessageStatelessOptions.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
assistantId |
protected MessageContextStateless |
context |
protected MessageInputStateless |
input |
Modifier | Constructor and Description |
---|---|
protected |
MessageStatelessOptions(MessageStatelessOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
assistantId()
Gets the assistantId.
|
MessageContextStateless |
context()
Gets the context.
|
MessageInputStateless |
input()
Gets the input.
|
MessageStatelessOptions.Builder |
newBuilder()
New builder.
|
protected java.lang.String assistantId
protected MessageInputStateless input
protected MessageContextStateless context
protected MessageStatelessOptions(MessageStatelessOptions.Builder builder)
public MessageStatelessOptions.Builder newBuilder()
public java.lang.String 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.
public MessageInputStateless input()
An input object that includes the input text.
public MessageContextStateless context()
Context data for the conversation. You can use this property to set or modify context variables, which can also be accessed by dialog nodes. The context is not stored by the assistant. To maintain session state, include the context from the previous response.
**Note:** The total size of the context data for a stateless session cannot exceed 250KB.