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 | Method and Description |
---|---|
String |
assistantId()
Gets the assistantId.
|
MessageContext |
context()
Gets the context.
|
MessageInput |
input()
Gets the input.
|
MessageOptions.Builder |
newBuilder()
New builder.
|
String |
sessionId()
Gets the sessionId.
|
String |
userId()
Gets the userId.
|
public MessageOptions.Builder newBuilder()
public 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 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.
public String userId()
A string value that identifies the user who is interacting with the assistant. The client must provide a unique identifier for each individual end user who accesses the application. For user-based plans, this user ID is used to identify unique users for billing purposes. This string cannot contain carriage return, newline, or tab characters. If no value is specified in the input, **user_id** is automatically set to the value of **context.global.session_id**.
**Note:** This property is the same as the **user_id** property in the global system context. If **user_id** is specified in both locations, the value specified at the root is used.
Copyright © 2022 IBM Cloud. All rights reserved.