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 TypeMethodDescriptiongetState()
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isEND()
Checks if the current node refers to the end of the graph.boolean
node()
Returns the 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 the node name.- Returns:
- the node name
-
state
-
getState
Deprecated, for removal: This API element is subject to removal in a future version.Usestate()
instead. -
isEND
public boolean isEND()Checks if the current node refers to the end of the graph.- Returns:
true
if the current node refers to the end of the graph
-
toString
-
state()
instead.