Class SubagentFinishedEvent

    • Constructor Detail

      • SubagentFinishedEvent

        public SubagentFinishedEvent()
    • 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
      • getToolUseId

        public String getToolUseId()
        Returns the ID matching the toolUseId of SubagentStartedEvent.
        Returns:
        matching tool use ID
      • getStatus

        public String getStatus()
        Returns the status: succeeded / failed.
        Returns:
        status
      • getStartedAt

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

        public double getElapsedTime()
        Returns the total subagent duration in seconds.
        Returns:
        total subagent duration in seconds
      • getError

        public String getError()
        Returns the error description on failure.
        Returns:
        error description
      • getOutputs

        public SubagentOutputs getOutputs()
        Returns the subagent result: goal, result, and the timeline of tool calls it made.
        Returns:
        subagent result