Replace FunctionCallback.builder() with FunctionToolCallback.builder(..)

Proprietary

Spring AI 1.0 replaced FunctionCallback with ToolCallback. This rewrites FunctionCallback.builder().function(name, function) chains, with their description(..), inputType(..) and inputTypeSchema(..), to FunctionToolCallback.builder(name, function). Chains that set a schema type, a response converter or an ObjectMapper have no direct equivalent and are left for review, as are FunctionCallback.builder().method(..) chains, which MethodToolCallback replaces.

io.moderne.java.spring.ai1.MigrateFunctionCallbackBuilder
mod run . --recipe=io.moderne.java.spring.ai1.MigrateFunctionCallbackBuilder

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.