Package com.longbridge.agent
Class HumanInteraction
- java.lang.Object
-
- com.longbridge.agent.HumanInteraction
-
public class HumanInteraction extends Object
A single interaction requested while an Agent workflow is paused
-
-
Constructor Summary
Constructors Constructor Description HumanInteraction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetInteractionType()Returns the interaction type such asask_humanortrade_password.StringgetInterruptId()Returns the stable key expected by the answers map when continuing.Question[]getQuestions()Returns the questions and answer options presented to the user.StringgetToolArgs()Returns the original tool arguments as a JSON string; empty when absent.StringgetToolCallId()Returns the tool call that requested the interaction.StringgetToolName()Returns the human-readable tool name.StringtoString()
-
-
-
Method Detail
-
getToolCallId
public String getToolCallId()
Returns the tool call that requested the interaction.- Returns:
- tool call ID
-
getInterruptId
public String getInterruptId()
Returns the stable key expected by the answers map when continuing.- Returns:
- interrupt ID
-
getInteractionType
public String getInteractionType()
Returns the interaction type such asask_humanortrade_password.- Returns:
- interaction type
-
getToolName
public String getToolName()
Returns the human-readable tool name.- Returns:
- tool name
-
getQuestions
public Question[] getQuestions()
Returns the questions and answer options presented to the user.- Returns:
- questions
-
getToolArgs
public String getToolArgs()
Returns the original tool arguments as a JSON string; empty when absent.- Returns:
- tool arguments JSON
-
-