add
fun RollbackToolRegistry.add(toolFunction: KFunction<*>, rollbackToolFunction: KFunction<*>)(source)
Adds a tool and its corresponding rollback tool to the registry. This convenience method converts both toolFunction and rollbackToolFunction into Tool objects before adding them.
Parameters
toolFunction
The Kotlin function representing the primary tool to add.
rollbackToolFunction
The Kotlin function representing the rollback tool associated with the primary tool.