Package com.longbridge.agent
Class AgentToolStartedEvent
- java.lang.Object
-
- com.longbridge.agent.ConversationStreamEvent
-
- com.longbridge.agent.AgentToolStartedEvent
-
public final class AgentToolStartedEvent extends ConversationStreamEvent
The Agent has delegated to another Agent as a tool. When the Agent delegates to another Agent as a tool, that inner run is reported with theagent_tool_*family — the shape mirrors the subagent events.
-
-
Constructor Summary
Constructors Constructor Description AgentToolStartedEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAgentToolName()Returns the identifier of the Agent being called.StringgetNodeId()Returns the ID of the calling node.longgetStartedAt()Returns the start time, Unix timestamp in seconds.String[]getTipChips()Returns the short tags; may be empty.StringgetTips()Returns the progress text; may be empty.StringgetTitle()Returns the display title; may be empty.StringgetToolArgs()Returns the call arguments as a JSON string.StringgetToolName()Returns the localized display name.StringgetToolUseId()Returns the unique ID of this call; matches the finished event.booleanisThinking()Returns whether the call happened during the thinking phase.StringtoString()
-
-
-
Method Detail
-
getNodeId
public String getNodeId()
Returns the ID of the calling node.- Returns:
- ID of the calling node
-
getToolUseId
public String getToolUseId()
Returns the unique ID of this call; matches the finished event.- Returns:
- unique ID of this call
-
getAgentToolName
public String getAgentToolName()
Returns the identifier of the Agent being called.- Returns:
- identifier of the Agent being called
-
getTitle
public String getTitle()
Returns the display title; may be empty.- Returns:
- display title
-
getStartedAt
public long getStartedAt()
Returns the start time, Unix timestamp in seconds.- Returns:
- start time
-
getToolArgs
public String getToolArgs()
Returns the call arguments as a JSON string.- Returns:
- call arguments (JSON string)
-
getToolName
public String getToolName()
Returns the localized display name.- Returns:
- localized display name
-
getTips
public String getTips()
Returns the progress text; may be empty.- Returns:
- progress text
-
getTipChips
public String[] getTipChips()
Returns the short tags; may be empty.- Returns:
- short tags
-
isThinking
public boolean isThinking()
Returns whether the call happened during the thinking phase.- Returns:
trueif called during the thinking phase
-
-