AgentCheckpointData
data class AgentCheckpointData(val checkpointId: String, val createdAt: Instant, val nodePath: String, val lastInput: JsonElement, val messageHistory: List<Message>, val version: Long, val properties: Map<String, JsonElement>? = null)(source)
Represents the checkpoint data for an agent's state during a session.
Constructors
Link copied to clipboard
constructor(checkpointId: String, createdAt: Instant, nodePath: String, lastInput: JsonElement, messageHistory: List<Message>, version: Long, properties: Map<String, JsonElement>? = null)
Properties
Link copied to clipboard
The unique identifier of the checkpoint. This allows tracking and restoring the agent's session to a specific state.
Link copied to clipboard
Serialized input received for node with nodePath
Link copied to clipboard
A list of messages exchanged in the session up to the checkpoint. Messages include interactions between the user, system, assistant, and tools.
Link copied to clipboard
Additional data associated with the checkpoint. This can be used to store additional information about the agent's state.
Functions
Link copied to clipboard
Checks whether the AgentCheckpointData instance is marked as a tombstone.
Link copied to clipboard
fun AgentCheckpointData.toAgentContextData(rollbackStrategy: RollbackStrategy, agentId: String, additionalRollbackAction: suspend (AIAgentContext) -> Unit = {}): AgentContextData
Converts an instance of AgentCheckpointData to AgentContextData.