This is a Spring AI and Spring Integration application that demonstrates the Orchestrator-Workers pattern. It analyzes a task and breaks it down into multiple approaches (formal, conversational, etc.), then generates different versions of content based on those approaches.
This is a Spring Integration implementation of the Orchestrator Workers example provided by Spring AI. It is implemented using a Splitter and Aggregator pattern.
-
The application receives a task (e.g., "Write a product description for a new eco-friendly water bottle")
-
The orchestrator analyzes the task and breaks it down into different approaches (formal, conversational, etc.)
-
Workers process each approach to generate different versions of content
-
The results are aggregated and returned
The application comes with a default example that generates a product description for an eco-friendly water bottle in different styles. The output will be displayed in the console when you run the application.
To modify the example or create your own tasks, edit the OrchestratorApplication.java file and change the message payload in the applicationRunner method.