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
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.boolean
node()
Returns the node name.static <State extends AgentState>
NodeOutput<State>protected void
setSubGraph
(boolean subgraph) state()
toString()
-
Constructor Details
-
NodeOutput
-
-
Method Details
-
of
-
setSubGraph
protected void setSubGraph(boolean subgraph) -
isSubGraph
public boolean isSubGraph()- Returns:
- boolean if the output is from a subgraph
-
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
-