public class MessageResponse
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected MessageContext |
context |
protected MessageOutput |
output |
Constructor and Description |
---|
MessageResponse() |
Modifier and Type | Method and Description |
---|---|
MessageContext |
getContext()
Gets the context.
|
MessageOutput |
getOutput()
Gets the output.
|
protected MessageOutput output
protected MessageContext context
public MessageOutput getOutput()
Assistant output to be rendered or processed by the client.
public MessageContext getContext()
Context data for the conversation. You can use this property to access context variables. The context is stored by the assistant on a per-session basis.
**Note:** The context is included in message responses only if **return_context**=`true` in the message request.