ToolStats

open class ToolStats(val name: String, val calls: Int, val averageResponseTime: Long = 0, val failures: Int = 0)

Stats around tool calls to a particular tool. Open to allow implementations to extend if they wish

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.

Constructors

Link copied to clipboard
constructor(name: String, calls: Int, averageResponseTime: Long = 0, failures: Int = 0)

Properties

Link copied to clipboard
Link copied to clipboard
val calls: Int
Link copied to clipboard
val failures: Int = 0
Link copied to clipboard

Functions

Link copied to clipboard
open fun infoString(verbose: Boolean?, indent: Int): String