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 | Method and Description |
---|---|
String |
assistantId()
Gets the assistantId.
|
MessageContextStateless |
context()
Gets the context.
|
MessageInputStateless |
input()
Gets the input.
|
MessageStatelessOptions.Builder |
newBuilder()
New builder.
|
String |
userId()
Gets the userId.
|
public MessageStatelessOptions.Builder newBuilder()
public String assistantId()
The assistant ID or the environment ID of the environment where the assistant is deployed, depending on the type of request: - For message, session, and log requests, specify the environment ID of the environment where the assistant is deployed. - For all other requests, specify the assistant ID of the assistant.
To find the environment ID or assistant ID in the Watson Assistant user interface, open the assistant settings and scroll to the **Environments** section.
**Note:** If you are using the classic Watson Assistant experience, always use the assistant ID. To find the assistant ID in the user interface, open the assistant settings and click API Details.
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.
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 in a message request, the value specified at the root is used.
Copyright © 2023 IBM Cloud. All rights reserved.