Tool
class Tool(val name: String, val description: String, val parameters: List<Parameter>, handler: suspend (Map<String, Any>, ToolContext) -> ToolResult)
Represents an executable tool with a defined structure, parameters, and result handler.
Constructors
Link copied to clipboard
constructor(name: String, description: String, parameters: List<Parameter>, handler: suspend (Map<String, Any>, ToolContext) -> ToolResult)
Properties
Link copied to clipboard
A brief description of what the tool does.
Link copied to clipboard
A list of Parameter instances specifying the input parameters required by the tool.