//clika-runtime/io.clika.modelverse/ToolDef
ToolDef
[common]
data class ToolDef(val name: String, val description: String = "", val parametersJson: String = "{}")
One tool a request offers: the function's name, its description and its parameters as a JSON schema document (parametersJson, an object; {} takes no arguments). The chat template renders the offer, and the reply's calls are read against the names.
Constructors
| ToolDef | [common] constructor(name: String, description: String = "", parametersJson: String = "{}") |
Properties
| Name | Summary |
|---|---|
| description | [common] val description: String |
| name | [common] val name: String |
| parametersJson | [common] val parametersJson: String |