Class MessageCompleteEvent
- All Implemented Interfaces:
HumanReadable, JobEvent, Serializable
Published by ReactiveThinker after each message iteration,
guaranteeing the frontend always receives a terminal signal per message exchange.
The frontend uses this to re-enable input, stop typing indicators, and finalize
any pending artifacts.
This is distinct from workflow-level events:
MessageCompleteEvent- one message exchange is done, conversation continuesWorkflowCompleteEvent- the entire chat session or workflow has ended
Published AFTER the last ContentStreamEvent (if any) and AFTER conversation
persistence. Content streaming and lifecycle signaling are separate concerns.
Implements JobEvent directly, outside every sealed category, so it reaches only
subscribers that ask for it by type or subscribe to everything. A success reads
"Message processed" as COMPLETING under the title "Message Complete"; a failure
"Message processing failed" as FAILING under "Message Failed", with the error
description it was given.
- Since:
- 0.1 (2026-03-14)
- Author:
- Andrey Santrosyan
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMessageCompleteEvent(JobSnapshot snapshot, boolean successful) Creates a message completion event with the given outcome and no error description.MessageCompleteEvent(JobSnapshot snapshot, boolean successful, String errorMessage) Creates a message completion event with optional error. -
Method Summary
Methods inherited from class AbstractJobEvent
message, setMessage, snapshot, timestamp
-
Constructor Details
-
MessageCompleteEvent
Creates a message completion event with the given outcome and no error description.- Parameters:
snapshot- the job snapshotsuccessful- whether the message was processed successfully
-
MessageCompleteEvent
Creates a message completion event with optional error.- Parameters:
snapshot- the job snapshotsuccessful- whether the message was processed successfullyerrorMessage- error description if failed (null for success)
-
-
Method Details
-
isSuccessful
public boolean isSuccessful() -
getErrorMessage
-
msgType
-
title
-
jobState
-
getHumanMessage
Description copied from interface:HumanReadableReturns a plain-text message suitable for display to end users.- Specified by:
getHumanMessagein interfaceHumanReadable- Returns:
- user-friendly message
-