Package com.longbridge.agent
Class AgentToolProgressEvent
- java.lang.Object
-
- com.longbridge.agent.ConversationStreamEvent
-
- com.longbridge.agent.AgentToolProgressEvent
-
public final class AgentToolProgressEvent extends ConversationStreamEvent
Emitted for each inner tool call the delegated Agent makes.
-
-
Constructor Summary
Constructors Constructor Description AgentToolProgressEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAgentToolName()Returns the identifier of the Agent being called.longgetDurationMs()Returns the duration of the inner call in milliseconds.StringgetInnerToolArgs()Returns the arguments of that inner call, as a JSON string.StringgetInnerToolName()Returns the name of the inner tool the delegated Agent called.StringgetNodeId()Returns the ID of the calling node.StringgetParentToolCallId()Returns thetoolUseIdof the owningAgentToolStartedEvent.longgetStartedAt()Returns the start time, Unix timestamp in seconds.StringgetStatus()Returns the status of the inner call:running/succeeded/failed.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
-
getParentToolCallId
public String getParentToolCallId()
Returns thetoolUseIdof the owningAgentToolStartedEvent.- Returns:
toolUseIdof the owningAgentToolStartedEvent
-
getAgentToolName
public String getAgentToolName()
Returns the identifier of the Agent being called.- Returns:
- identifier of the Agent being called
-
getInnerToolName
public String getInnerToolName()
Returns the name of the inner tool the delegated Agent called.- Returns:
- name of the inner tool the delegated Agent called
-
getInnerToolArgs
public String getInnerToolArgs()
Returns the arguments of that inner call, as a JSON string.- Returns:
- arguments of that inner call (JSON string)
-
getStatus
public String getStatus()
Returns the status of the inner call:running/succeeded/failed.- Returns:
- status of the inner call
-
getDurationMs
public long getDurationMs()
Returns the duration of the inner call in milliseconds.- Returns:
- duration of the inner call in milliseconds
-
getStartedAt
public long getStartedAt()
Returns the start time, Unix timestamp in seconds.- Returns:
- start time
-
isThinking
public boolean isThinking()
Returns whether the call happened during the thinking phase.- Returns:
trueif during the thinking phase
-
-