Package com.longbridge.agent
Class ChatStartedEvent
- java.lang.Object
-
- com.longbridge.agent.ConversationStreamEvent
-
- com.longbridge.agent.ChatStartedEvent
-
public final class ChatStartedEvent extends ConversationStreamEvent
The run has started. Always the first event of a stream.
-
-
Constructor Summary
Constructors Constructor Description ChatStartedEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetChatId()Returns the ID of the owning conversation.StringgetChatUid()Returns the conversation identifier.StringgetError()Returns the error detail; empty at start.StringgetErrorMessage()Returns the user-facing error message; empty at start.StringgetMessageId()Returns the message ID of this round.StringtoString()
-
-
-
Method Detail
-
getChatUid
public String getChatUid()
Returns the conversation identifier.- Returns:
- conversation identifier
-
getMessageId
public String getMessageId()
Returns the message ID of this round.- Returns:
- message ID
-
getChatId
public long getChatId()
Returns the ID of the owning conversation.- Returns:
- owning conversation ID
-
getError
public String getError()
Returns the error detail; empty at start.- Returns:
- error detail
-
getErrorMessage
public String getErrorMessage()
Returns the user-facing error message; empty at start.- Returns:
- user-facing error message
-
-