Package com.embabel.agent.api.common
Class ToolStats
-
- All Implemented Interfaces:
-
com.embabel.common.core.types.HasInfoString
public class ToolStats implements HasInfoStringStats around tool calls to a particular tool. Open to allow implementations to extend if they wish
-
-
Method Summary
Modifier and Type Method Description final StringgetName()final IntegergetCalls()final LonggetAverageResponseTime()final IntegergetFailures()StringinfoString(Boolean verbose, Integer indent)-
-
Constructor Detail
-
ToolStats
ToolStats(String name, Integer calls, Long averageResponseTime, Integer failures)
- Parameters:
name- The name of the tool.calls- The number of times the tool has been called.averageResponseTime- The average response time of the tool in milliseconds.failures- The number of times the tool has failed.
-
-
Method Detail
-
getAverageResponseTime
final Long getAverageResponseTime()
-
getFailures
final Integer getFailures()
-
infoString
String infoString(Boolean verbose, Integer indent)
-
-
-
-