DummyTool
constructor(name: String = "dummy_tool", description: String = "A dummy tool for testing.", isLongRunning: Boolean = false, declares: Boolean = false, onRun: suspend (context: ToolContext, args: Map<String, Any?>) -> Any = { _, _ ->
mapOf("status" to "done")
})
Parameters
name
The name of the tool. Defaults to "dummy_tool".
description
The description of the tool. Defaults to "A dummy tool for testing.".
onRun
The suspendable lambda that simulates the run method execution. It receives the ToolContext and arguments map, and must return the tool's result. Defaults to returning a successful "status" mapped to "done".
declares
Whether declaration returns a FunctionDeclaration, so the model is offered the tool. Defaults to false.