The example discussed in that pull request to demonstrate this pattern at work is an agentic system that generates horoscope-based writeups. The complete source code of this example is available https://github.com/langchain4j/langchain4j/tree/main/langchain4j-agentic-patterns/src/test/java/dev/langchain4j/agentic/patterns/goap/horoscope[here]. This system is composed of multiple subagents, each responsible for a specific task, such as extracting the user's data from the prompt, fetching horoscope data from an external source, generating content based on the horoscope, and formatting the final writeup. In this situation the graph of agents dependencies, also determining the sequence of their activations, is the following:
0 commit comments