fromMethod

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

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


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

Builds a BaseTool from an explicit method on instance.