Uses of Interface
dev.langchain4j.agentic.patterns.blackboard.ConflictResolutionStrategy
Packages that use ConflictResolutionStrategy
-
Uses of ConflictResolutionStrategy in dev.langchain4j.agentic.patterns.blackboard
Fields in dev.langchain4j.agentic.patterns.blackboard declared as ConflictResolutionStrategyModifier and TypeFieldDescriptionstatic final ConflictResolutionStrategyConflictResolutionStrategy.DECLARATION_ORDERSelects the first candidate, preserving the declaration order used in thesubAgentsmethod.Methods in dev.langchain4j.agentic.patterns.blackboard that return ConflictResolutionStrategyModifier and TypeMethodDescriptionstatic ConflictResolutionStrategyConflictResolutionStrategy.agentOfType(Class<?> agentType) Returns a strategy that unconditionally selects the candidate matchingagentType, ornullif no candidate of that type is present.static ConflictResolutionStrategyConflictResolutionStrategy.agentOfType(Class<?> agentType, Predicate<AgenticScope> condition) Returns a strategy that selects the candidate matchingagentTypeonly whenconditionis satisfied, ornullotherwise.static ConflictResolutionStrategyConflictResolutionStrategy.agentWithName(String agentName) Returns a strategy that unconditionally selects the candidate matchingagentName, ornullif no candidate with that name is present.static ConflictResolutionStrategyConflictResolutionStrategy.agentWithName(String agentName, Predicate<AgenticScope> condition) Returns a strategy that selects the candidate matchingagentNameonly whenconditionis satisfied, ornullotherwise.static ConflictResolutionStrategyConflictResolutionStrategy.declarationOrder()Returns a strategy that selects the first candidate in declaration order.default ConflictResolutionStrategyConflictResolutionStrategy.or(ConflictResolutionStrategy other) Chains this strategy with a fallback: if this strategy returnsnull, theotherstrategy is applied instead.static ConflictResolutionStrategyConflictResolutionStrategy.selectAgent(Predicate<AgentInstance> agentFilter) Returns a strategy that unconditionally selects the first candidate matchingagentFilter, ornullif no candidate matches.static ConflictResolutionStrategyConflictResolutionStrategy.selectAgent(Predicate<AgentInstance> agentFilter, Predicate<AgenticScope> condition) Returns a strategy that selects the first candidate matchingagentFilteronly whenconditionis satisfied, ornullotherwise.Methods in dev.langchain4j.agentic.patterns.blackboard with parameters of type ConflictResolutionStrategyModifier and TypeMethodDescriptiondefault ConflictResolutionStrategyConflictResolutionStrategy.or(ConflictResolutionStrategy other) Chains this strategy with a fallback: if this strategy returnsnull, theotherstrategy is applied instead.Constructors in dev.langchain4j.agentic.patterns.blackboard with parameters of type ConflictResolutionStrategyModifierConstructorDescriptionBlackboardPlanner(ConflictResolutionStrategy conflictResolutionStrategy) BlackboardPlanner(Predicate<AgenticScope> goalPredicate, int maxInvocations, ConflictResolutionStrategy conflictResolutionStrategy) BlackboardPlanner(Predicate<AgenticScope> goalPredicate, ConflictResolutionStrategy conflictResolutionStrategy)