Package com.longbridge.agent
Class SubagentProgressEvent
- java.lang.Object
-
- com.longbridge.agent.ConversationStreamEvent
-
- com.longbridge.agent.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 Summary
Constructors Constructor Description SubagentProgressEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetNodeId()Returns the ID of the node that spawned the subagent.StringgetParentToolCallId()Returns thetoolUseIdof the owningSubagentStartedEvent.longgetStartedAt()Returns the start time, Unix timestamp in seconds.longgetSubagentDurationMs()Returns the duration of that call in milliseconds.intgetSubagentIteration()Returns the subagent's internal round number.StringgetSubagentStatus()Returns the status of that call:running/succeeded/failed.StringgetSubagentToolArgs()Returns the arguments of that call, as a JSON string.StringgetSubagentToolName()Returns the name of the tool the subagent called.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
-
getParentToolCallId
public String getParentToolCallId()
Returns thetoolUseIdof the owningSubagentStartedEvent.- Returns:
toolUseIdof the owningSubagentStartedEvent
-
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
-
-