Currently, when passing a function as a tool, it's not correctly inferring the name and input parameters. This should be fixed. In the meantime, callable objects are working as expected.