Package org.bsc.langgraph4j
Class NodeOutput<State extends AgentState>
java.lang.Object
org.bsc.langgraph4j.NodeOutput<State>
- Type Parameters:
State
- the type of the state associated with the node output
- Direct Known Subclasses:
StateSnapshot
,StreamingOutput
,SubGraphOutput
Represents the output of a node in a graph.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isEND()
Checks if the current node refers to the end of the graph processing.boolean
isSTART()
Checks if the current node refers to the start of the graph processing.node()
Returns the node name.static <State extends AgentState>
NodeOutput<State>state()
toString()
-
Constructor Details
-
NodeOutput
-
-
Method Details
-
of
-
node
Returns the node name.- Returns:
- the node name
-
state
-
isSTART
public boolean isSTART()Checks if the current node refers to the start of the graph processing.- Returns:
true
if the current node refers to the start of the graph processing
-
isEND
public boolean isEND()Checks if the current node refers to the end of the graph processing. useful to understand if the workflow has been interrupted.- Returns:
true
if the current node refers to the end of the graph processing
-
toString
-