Record Class ConditionalPlanner
java.lang.Object
java.lang.Record
dev.langchain4j.agentic.workflow.impl.ConditionalPlanner
- All Implemented Interfaces:
Planner
-
Constructor Summary
ConstructorsConstructorDescriptionConditionalPlanner(List<dev.langchain4j.agentic.workflow.impl.ConditionalPlanner.ConditionalAgent> conditionalAgents) Creates an instance of aConditionalPlannerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<dev.langchain4j.agentic.workflow.impl.ConditionalPlanner.ConditionalAgent> Returns the value of theconditionalAgentsrecord 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) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConditionalPlanner
public ConditionalPlanner(List<dev.langchain4j.agentic.workflow.impl.ConditionalPlanner.ConditionalAgent> conditionalAgents) Creates an instance of aConditionalPlannerrecord class.- Parameters:
conditionalAgents- the value for theconditionalAgentsrecord component
-
-
Method Details
-
firstAction
- Specified by:
firstActionin interfacePlanner
-
nextAction
- Specified by:
nextActionin interfacePlanner
-
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). -
conditionalAgents
public List<dev.langchain4j.agentic.workflow.impl.ConditionalPlanner.ConditionalAgent> conditionalAgents()Returns the value of theconditionalAgentsrecord component.- Returns:
- the value of the
conditionalAgentsrecord component
-