Package com.longbridge.agent
Class SubagentFinishedEvent
- java.lang.Object
-
- com.longbridge.agent.ConversationStreamEvent
-
- com.longbridge.agent.SubagentFinishedEvent
-
public final class SubagentFinishedEvent extends ConversationStreamEvent
The subagent has finished its sub-task.
-
-
Constructor Summary
Constructors Constructor Description SubagentFinishedEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetElapsedTime()Returns the total subagent duration in seconds.StringgetError()Returns the error description on failure.StringgetNodeId()Returns the ID of the node that spawned the subagent.SubagentOutputsgetOutputs()Returns the subagent result: goal, result, and the timeline of tool calls it made.longgetStartedAt()Returns the start time, Unix timestamp in seconds.StringgetStatus()Returns the status:succeeded/failed.StringgetToolUseId()Returns the ID matching thetoolUseIdofSubagentStartedEvent.StringtoString()
-
-
-
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 thetoolUseIdofSubagentStartedEvent.- 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
-
-