safely From Instance
fun safelyFromInstance(instance: Any, objectMapper: <Error class: unknown class> = jacksonObjectMapper()): List<Tool>
Safely create Tools from an instance, returning empty list if no annotated methods found. This is useful when you want to scan an object that may or may not have tool methods.
Return
List of Tools, or empty list if no annotated methods found
Parameters
instance
The object instance to scan for annotated methods
object Mapper
ObjectMapper for JSON parsing (optional)