Skip to content

Commit de11e8e

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

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
@@ -91,7 +91,7 @@ public class GoalOrientedPlanner implements Planner {
9191
}
9292
----
9393

94-
As anticipated, here the goal coincides with the final output of the planner-based agentic pattern itself, while the path from the initial state to the goal is calculated using a graph, that is built analyzing the input and output keys of all subagents. The sequence of agents to be invoked is then calculated as the shortest path on that graph from the current state to the desired goal.
94+
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

9696
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:
9797

0 commit comments

Comments
 (0)