Package org.bsc.langgraph4j.state
Class StateSnapshot<State extends AgentState>
java.lang.Object
org.bsc.langgraph4j.NodeOutput<State>
org.bsc.langgraph4j.state.StateSnapshot<State>
- All Implemented Interfaces:
HasMetadata,SnapshotOutput
public final class StateSnapshot<State extends AgentState>
extends NodeOutput<State>
implements SnapshotOutput
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bsc.langgraph4j.HasMetadata
HasMetadata.Builder<B extends HasMetadata.Builder<B>> -
Field Summary
Fields inherited from class org.bsc.langgraph4j.NodeOutput
metadataSupplier -
Method Summary
Modifier and TypeMethodDescriptionThe creation date of the checkpoint this snapshot refers to.static <State extends AgentState>
StateSnapshot<State> of(Checkpoint checkpoint, AgentStateFactory<State> factory) toString()Methods inherited from class org.bsc.langgraph4j.NodeOutput
isEND, isSTART, metadata, metadataKeys, node, of, stateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bsc.langgraph4j.HasMetadata
metadataMethods inherited from interface org.bsc.langgraph4j.SnapshotOutput
config, next
-
Method Details
-
of
public static <State extends AgentState> StateSnapshot<State> of(Checkpoint checkpoint, AgentStateFactory<State> factory) -
nextNodeId
- Specified by:
nextNodeIdin interfaceSnapshotOutput
-
checkpointId
- Specified by:
checkpointIdin interfaceSnapshotOutput
-
createdAt
The creation date of the checkpoint this snapshot refers to.- Returns:
- the checkpoint creation date
- Since:
- 1.9.6
-
toString
- Overrides:
toStringin classNodeOutput<State extends AgentState>
-