Package com.longbridge.agent
Class Interrupt
- java.lang.Object
-
- com.longbridge.agent.Interrupt
-
public class Interrupt extends Object
Present when a conversation run is interrupted, waiting forAgentContext.continueConversation(java.lang.String, java.lang.String, java.lang.String, java.util.Map<java.lang.String, java.util.Map<java.lang.String, java.lang.String>>)
-
-
Constructor Summary
Constructors Constructor Description Interrupt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetChatId()Returns the ID of the owning conversation.HumanInteraction[]getInteractions()Returns the full interaction descriptors used to render and answer the pause.longgetMessageId()Returns the ID of the paused message.StringgetNodeId()Returns the ID of the node that triggered the interrupt.Question[]getQuestions()Returns the questions you need to answer.StringgetToolCallId()Returns the tool call ID of this inquiry; used as the answer key when continuing.StringtoString()
-
-
-
Method Detail
-
getNodeId
public String getNodeId()
Returns the ID of the node that triggered the interrupt.- Returns:
- node ID
-
getToolCallId
public String getToolCallId()
Returns the tool call ID of this inquiry; used as the answer key when continuing.- Returns:
- tool call ID
-
getQuestions
public Question[] getQuestions()
Returns the questions you need to answer.- Returns:
- questions
-
getInteractions
public HumanInteraction[] getInteractions()
Returns the full interaction descriptors used to render and answer the pause.- Returns:
- interactions
-
getMessageId
public long getMessageId()
Returns the ID of the paused message.- Returns:
- message ID
-
getChatId
public long getChatId()
Returns the ID of the owning conversation.- Returns:
- conversation ID
-
-