AgentCheckpointDataSerializer
Custom serializer for AgentCheckpointData that adds backward compatibility with the pre-refactoring format, where AgentCheckpointData.nodePath, AgentCheckpointData.lastInput, and AgentCheckpointData.lastOutput were top-level fields instead of entries in AgentCheckpointData.properties.
Old format: { "checkpointId": ..., "nodePath": "x", "lastOutput": "y", "messageHistory": [...], ... } New format: { "checkpointId": ..., "messageHistory": [...], "properties": { "nodePath": "x", "lastOutput": "y", ... }, ... }
Functions
Link copied to clipboard
Link copied to clipboard
Returns true if jsonString was produced by the old AgentCheckpointData format, where nodePath, lastInput, and lastOutput appeared as top-level JSON fields.
Link copied to clipboard