Pass Spring AI tool callbacks to tools(..)

Proprietary

Spring AI 2.0 deprecated ChatClient.Builder#defaultToolCallbacks(..) and ChatClientRequestSpec#toolCallbacks(..) in favor of defaultTools(Object...) and tools(Object...), which take tool callbacks and providers as well as objects with @Tool methods. This renames the calls that pass the callbacks or providers one by one. Calls that pass a List are left as they are, since tools(..) would take the list itself as a tool object.

io.moderne.java.spring.ai2.UseToolsForToolCallbacks
mod run . --recipe=io.moderne.java.spring.ai2.UseToolsForToolCallbacks

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