Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
Context.Builder |
add(String name,
Object value)
Add an arbitrary property.
|
Context |
build()
Builds a Context.
|
Context.Builder |
conversationId(String conversationId)
Set the conversationId.
|
Context.Builder |
metadata(MessageContextMetadata metadata)
Set the metadata.
|
Context.Builder |
system(Map<String,Object> system)
Set the system.
|
public Context build()
public Context.Builder conversationId(String conversationId)
conversationId
- the conversationIdpublic Context.Builder system(Map<String,Object> system)
system
- the systempublic Context.Builder metadata(MessageContextMetadata metadata)
metadata
- the metadatapublic Context.Builder add(String name, Object value)
name
- the name of the property to addvalue
- the value of the property to addCopyright © 2024 IBM Cloud. All rights reserved.