Class BlackboardPlanner

java.lang.Object
dev.langchain4j.agentic.patterns.blackboard.BlackboardPlanner
All Implemented Interfaces:
Planner

public class BlackboardPlanner extends Object implements Planner
A blackboard planner that activates agents based on data availability in the shared scope.

Agents are knowledge sources that post partial results to the AgenticScope (the blackboard). After each agent completes, the planner inspects the blackboard and activates whichever single agent can contribute next. When multiple agents are ready, a ConflictResolutionStrategy determines which one fires; if no strategy is provided, declaration order is used.

The planner terminates when:

  • The goal predicate is satisfied (by default, when the planner's outputKey is present in scope)
  • No agent can fire (quiescence)
  • The maximum number of invocations is reached