public class Context extends com.ibm.cloud.sdk.core.service.model.DynamicModel<Object>
| Modifier and Type | Class and Description | 
|---|---|
| static class  | Context.BuilderBuilder. | 
| Constructor and Description | 
|---|
| Context() | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getConversationId()Gets the conversationId. | 
| MessageContextMetadata | getMetadata()Gets the metadata. | 
| Map<String,Object> | getSystem()Gets the system. | 
| Context.Builder | newBuilder()New builder. | 
| void | setConversationId(String conversationId)Sets the conversationId. | 
| void | setMetadata(MessageContextMetadata metadata)Sets the metadata. | 
| void | setSystem(Map<String,Object> system)Sets the system. | 
public Context.Builder newBuilder()
public String getConversationId()
The unique identifier of the conversation. The conversation ID cannot contain any of the following characters: `+` `=` `&&` `||` `>` `<` `!` `(` `)` `{` `}` `[` `]` `^` `"` `~` `*` `?` `:` `\` `/`.
public void setConversationId(String conversationId)
conversationId - the new conversationIdpublic Map<String,Object> getSystem()
For internal use only.
public void setSystem(Map<String,Object> system)
system - the new systempublic MessageContextMetadata getMetadata()
Metadata related to the message.
public void setMetadata(MessageContextMetadata metadata)
metadata - the new metadataCopyright © 2023 IBM Cloud. All rights reserved.