fromMethod

fun fromMethod(instance: Any, methodName: String): BaseTool

Builds a BaseTool from the uniquely-named Tool method methodName on instance.


fun fromMethod(instance: Any, method: Method): BaseTool

Builds a BaseTool from an explicit method on instance.