Class SpringAIStateSerializer<State extends AgentState>
java.lang.Object
org.bsc.langgraph4j.serializer.StateSerializer<State>
org.bsc.langgraph4j.serializer.std.ObjectStreamStateSerializer<State>
org.bsc.langgraph4j.spring.ai.serializer.std.SpringAIStateSerializer<State>
- All Implemented Interfaces:
Serializer<State>
public class SpringAIStateSerializer<State extends AgentState>
extends ObjectStreamStateSerializer<State>
This class is responsible for serializing and deserializing the state of an agent executor.
It extends
ObjectStreamStateSerializer for handling the serialization of the AgentExecutor.State object.-
Constructor Summary
ConstructorsConstructorDescriptionSpringAIStateSerializer(AgentStateFactory<State> stateFactory) Constructor that initializes the serializer with a supplier for creating new AgentExecutor.State instances and registers various serializers for different types. -
Method Summary
Methods inherited from class org.bsc.langgraph4j.serializer.std.ObjectStreamStateSerializer
mapper, readData, writeDataMethods inherited from class org.bsc.langgraph4j.serializer.StateSerializer
cloneObject, dataFromBytes, dataToBytes, read, stateFactory, stateOf, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bsc.langgraph4j.serializer.Serializer
bytesToObject, cloneObject, contentType, objectToBytes, readObject, writeObject
-
Constructor Details
-
SpringAIStateSerializer
Constructor that initializes the serializer with a supplier for creating new AgentExecutor.State instances and registers various serializers for different types.
-