Class HumanInteraction


  • public class HumanInteraction
    extends Object
    A single interaction requested while an Agent workflow is paused
    • Constructor Detail

      • HumanInteraction

        public HumanInteraction()
    • 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 as ask_human or trade_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