Package org.bsc.langgraph4j.edge
Record Class EdgeCondition<S extends AgentState>
java.lang.Object
java.lang.Record
org.bsc.langgraph4j.edge.EdgeCondition<S>
- Type Parameters:
S- the type of the state associated with the edge- Record Components:
action- The action to be performed asynchronously when the edge condition is met.mappings- A map of string key-value pairs representing additional mappings for the edge condition.
public record EdgeCondition<S extends AgentState>(AsyncCommandAction<S extends AgentState> action, Map<String,String> mappings)
extends Record
Represents a condition associated with an edge in a graph.
-
Constructor Summary
ConstructorsConstructorDescriptionEdgeCondition(AsyncCommandAction<S> action, Map<String, String> mappings) Creates an instance of aEdgeConditionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mappings()Returns the value of themappingsrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
EdgeCondition
-
-
Method Details
-
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). -
action
-
mappings
-