Record Class ConditionalPlanner
java.lang.Object
java.lang.Record
dev.langchain4j.agentic.workflow.impl.ConditionalPlanner
- All Implemented Interfaces:
Planner
public record ConditionalPlanner(List<ConditionalAgent> conditionalSubagents)
extends Record
implements Planner
-
Constructor Summary
ConstructorsConstructorDescriptionConditionalPlanner(List<ConditionalAgent> conditionalSubagents) Creates an instance of aConditionalPlannerrecord class. -
Method Summary
Modifier and TypeMethodDescription<T extends AgentInstance>
Tas(Class<T> agentInstanceClass, AgentInstance agentInstance) Returns the value of theconditionalSubagentsrecord component.final booleanIndicates whether some other object is "equal to" this one.firstAction(PlanningContext planningContext) final inthashCode()Returns a hash code value for this object.nextAction(PlanningContext planningContext) booleantopology()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConditionalPlanner
Creates an instance of aConditionalPlannerrecord class.- Parameters:
conditionalSubagents- the value for theconditionalSubagentsrecord component
-
-
Method Details
-
firstAction
- Specified by:
firstActionin interfacePlanner
-
nextAction
- Specified by:
nextActionin interfacePlanner
-
topology
-
terminated
public boolean terminated()- Specified by:
terminatedin interfacePlanner
-
as
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
conditionalSubagents
Returns the value of theconditionalSubagentsrecord component.- Returns:
- the value of the
conditionalSubagentsrecord component
-