Create Spring AI messages with their builders

Proprietary

Spring AI 1.1 removed the public constructors of ToolResponseMessage and all but AssistantMessage(String) of AssistantMessage. This replaces new AssistantMessage(content, properties, ..) with AssistantMessage.builder().content(content).properties(properties)..build(), and new ToolResponseMessage(responses, metadata) with ToolResponseMessage.builder().responses(responses).metadata(metadata).build().

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

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