Pass Spring AI tool callbacks to tools(..)
ProprietarySpring 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. UseToolsForToolCallbacksmod run . --recipe= io. moderne. java. spring. ai2. UseToolsForToolCallbacksInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.