Class SubagentProgressEvent


  • public final class SubagentProgressEvent
    extends ConversationStreamEvent
    Emitted every time the subagent calls one of its own tools. Use it to render a live timeline inside the subagent card.
    • Constructor Detail

      • SubagentProgressEvent

        public SubagentProgressEvent()
    • Method Detail

      • getNodeId

        public String getNodeId()
        Returns the ID of the node that spawned the subagent.
        Returns:
        ID of the node that spawned the subagent
      • getSubagentToolName

        public String getSubagentToolName()
        Returns the name of the tool the subagent called.
        Returns:
        name of the tool the subagent called
      • getSubagentToolArgs

        public String getSubagentToolArgs()
        Returns the arguments of that call, as a JSON string.
        Returns:
        arguments of that call (JSON string)
      • getSubagentStatus

        public String getSubagentStatus()
        Returns the status of that call: running / succeeded / failed.
        Returns:
        status of that call
      • getSubagentDurationMs

        public long getSubagentDurationMs()
        Returns the duration of that call in milliseconds.
        Returns:
        duration of that call in milliseconds
      • getSubagentIteration

        public int getSubagentIteration()
        Returns the subagent's internal round number.
        Returns:
        subagent's internal round number
      • getStartedAt

        public long getStartedAt()
        Returns the start time, Unix timestamp in seconds.
        Returns:
        start time