public class MessageOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
MessageOptions.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
assistantId |
protected MessageContext |
context |
protected MessageInput |
input |
protected java.lang.String |
sessionId |
Modifier | Constructor and Description |
---|---|
protected |
MessageOptions(MessageOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
assistantId()
Gets the assistantId.
|
MessageContext |
context()
Gets the context.
|
MessageInput |
input()
Gets the input.
|
MessageOptions.Builder |
newBuilder()
New builder.
|
java.lang.String |
sessionId()
Gets the sessionId.
|
protected java.lang.String assistantId
protected java.lang.String sessionId
protected MessageInput input
protected MessageContext context
protected MessageOptions(MessageOptions.Builder builder)
public MessageOptions.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 java.lang.String sessionId()
Unique identifier of the session.
public MessageInput input()
An input object that includes the input text.
public MessageContext 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 stored by the assistant on a per-session basis.
**Note:** The total size of the context data stored for a stateful session cannot exceed 100KB.