Interface TextOutputEvent.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TextOutputEvent.Builder,,TextOutputEvent> SdkBuilder<TextOutputEvent.Builder,,TextOutputEvent> SdkPojo
- All Known Subinterfaces:
DefaultTextEvent.Builder
- Enclosing class:
TextOutputEvent
-
Method Summary
Modifier and TypeMethodDescriptionconversationId(String conversationId) The identifier of the conversation with which the text output event is associated.systemMessage(String systemMessage) An AI-generated message in aTextOutputEvent.systemMessageId(String systemMessageId) The identifier of an AI-generated message in aTextOutputEvent.systemMessageType(String systemMessageType) The type of AI-generated message in aTextOutputEvent.systemMessageType(SystemMessageType systemMessageType) The type of AI-generated message in aTextOutputEvent.userMessageId(String userMessageId) The identifier of an end user message in aTextOutputEvent.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
systemMessageType
The type of AI-generated message in a
TextOutputEvent. Amazon Q Business currently supports two types of messages:-
RESPONSE- The Amazon Q Business system response. -
GROUNDED_RESPONSE- The corrected, hallucination-reduced, response returned by Amazon Q Business. Available only if hallucination reduction is supported and configured for the application and detected in the end user chat query by Amazon Q Business.
- Parameters:
systemMessageType- The type of AI-generated message in aTextOutputEvent. Amazon Q Business currently supports two types of messages:-
RESPONSE- The Amazon Q Business system response. -
GROUNDED_RESPONSE- The corrected, hallucination-reduced, response returned by Amazon Q Business. Available only if hallucination reduction is supported and configured for the application and detected in the end user chat query by Amazon Q Business.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
systemMessageType
The type of AI-generated message in a
TextOutputEvent. Amazon Q Business currently supports two types of messages:-
RESPONSE- The Amazon Q Business system response. -
GROUNDED_RESPONSE- The corrected, hallucination-reduced, response returned by Amazon Q Business. Available only if hallucination reduction is supported and configured for the application and detected in the end user chat query by Amazon Q Business.
- Parameters:
systemMessageType- The type of AI-generated message in aTextOutputEvent. Amazon Q Business currently supports two types of messages:-
RESPONSE- The Amazon Q Business system response. -
GROUNDED_RESPONSE- The corrected, hallucination-reduced, response returned by Amazon Q Business. Available only if hallucination reduction is supported and configured for the application and detected in the end user chat query by Amazon Q Business.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
conversationId
The identifier of the conversation with which the text output event is associated.
- Parameters:
conversationId- The identifier of the conversation with which the text output event is associated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userMessageId
The identifier of an end user message in a
TextOutputEvent.- Parameters:
userMessageId- The identifier of an end user message in aTextOutputEvent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
systemMessageId
The identifier of an AI-generated message in a
TextOutputEvent.- Parameters:
systemMessageId- The identifier of an AI-generated message in aTextOutputEvent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
systemMessage
An AI-generated message in a
TextOutputEvent.- Parameters:
systemMessage- An AI-generated message in aTextOutputEvent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-