Create Spring AI messages with their builders
ProprietarySpring 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. UseMessageBuildersmod run . --recipe= io. moderne. java. spring. ai1. UseMessageBuildersInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.