Skip to content

Commit 6373df7

Browse files
Update _posts/2025-11-12-agentic-ai-patterns.adoc
Co-authored-by: Clement Escoffier <[email protected]>
1 parent de11e8e commit 6373df7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_posts/2025-11-12-agentic-ai-patterns.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public class GoalOrientedPlanner implements Planner {
9393

9494
As mentioned earlier, in this example, the goal corresponds to the final output of the planner-based agentic pattern itself. The path from the initial state to that goal is computed using a graph built by analyzing the input and output keys of all subagents. The sequence of agents to invoke is then determined as the shortest path on that graph, connecting the current state to the desired goal.
9595

96-
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:
96+
The example discussed in the pull request to demonstrate this pattern in action is an agentic system that generates horoscope-based write-ups. The complete source code is available [here](https://github.com/langchain4j/langchain4j/tree/main/langchain4j-agentic-patterns/src/test/java/dev/langchain4j/agentic/patterns/goap/horoscope). This system is composed of several subagents, each responsible for a specific task, such as extracting user data from the prompt, fetching horoscope information from an external source, generating content based on that data, and formatting the final write-up. In this setup, the graph of agent dependencies, which also determines the sequence of their activations, is as follows:
9797

9898
[.text-center]
9999
.The GOAP-determined sequence of agents invocation to generate an horoscope-based writeup

0 commit comments

Comments
 (0)