Package com.longbridge.agent
Class NodeToolUseFinishedEvent
- java.lang.Object
-
- com.longbridge.agent.ConversationStreamEvent
-
- com.longbridge.agent.NodeToolUseFinishedEvent
-
public final class NodeToolUseFinishedEvent extends ConversationStreamEvent
The tool call has ended.
-
-
Constructor Summary
Constructors Constructor Description NodeToolUseFinishedEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetElapsedTime()Returns the call duration in seconds.StringgetError()Returns the error description on failure.intgetIteration()Returns the round number.NodeToolUseOutputsgetOutputs()Returns the filtered call results, for display.longgetStartedAt()Returns the start time, Unix timestamp in seconds.StringgetStatus()Returns the call status:succeeded/failed.String[]getTipChips()Returns the short tags; may be empty.StringgetTips()Returns the progress text.StringgetToolArgs()Returns the call arguments as a JSON string.StringgetToolFuncName()Returns the locale-stable tool identifier.StringgetToolName()Returns the localized display name.StringgetToolType()Returns the tool category.StringgetToolUseId()Returns the ID matching thetoolUseIdof the started event.booleanisThinking()Returns whether the call happened during the thinking phase.StringtoString()
-
-
-
Method Detail
-
getToolUseId
public String getToolUseId()
Returns the ID matching thetoolUseIdof the started event.- Returns:
- matching tool use ID
-
getStatus
public String getStatus()
Returns the call status:succeeded/failed.- Returns:
- call status
-
getError
public String getError()
Returns the error description on failure.- Returns:
- error description
-
getElapsedTime
public double getElapsedTime()
Returns the call duration in seconds.- Returns:
- call duration in seconds
-
getStartedAt
public long getStartedAt()
Returns the start time, Unix timestamp in seconds.- Returns:
- start time
-
getToolName
public String getToolName()
Returns the localized display name.- Returns:
- localized display name
-
getToolFuncName
public String getToolFuncName()
Returns the locale-stable tool identifier.- Returns:
- locale-stable tool identifier
-
getToolArgs
public String getToolArgs()
Returns the call arguments as a JSON string.- Returns:
- call arguments (JSON string)
-
getToolType
public String getToolType()
Returns the tool category.- Returns:
- tool category
-
getTips
public String getTips()
Returns the progress text.- Returns:
- progress text
-
getTipChips
public String[] getTipChips()
Returns the short tags; may be empty.- Returns:
- short tags
-
getIteration
public int getIteration()
Returns the round number.- Returns:
- round number
-
isThinking
public boolean isThinking()
Returns whether the call happened during the thinking phase.- Returns:
trueif the call happened during the thinking phase
-
getOutputs
public NodeToolUseOutputs getOutputs()
Returns the filtered call results, for display.- Returns:
- filtered call results
-
-