AgentCheckpointData

data class AgentCheckpointData(val checkpointId: String, val createdAt: Instant, val nodePath: String, val lastInput: JSONElement? = null, val lastOutput: JSONElement? = null, val messageHistory: List<Message>, val version: Long, val properties: JSONObject? = 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? = null, lastOutput: JSONElement? = null, messageHistory: List<Message>, version: Long, properties: JSONObject? = null)
constructor(checkpointId: String, createdAt: Instant, nodePath: String, lastInput: JsonElement? = null, lastOutput: JsonElement? = null, messageHistory: List<Message>, version: Long, properties: JsonObject? = null)

Constructs an instance of the class with the specified parameters. This constructor is marked as deprecated and may be removed in the future.

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

The timestamp when the checkpoint was created.

Link copied to clipboard
val lastInput: JSONElement?

Serialized input received for node with nodePath

Link copied to clipboard
val lastOutput: JSONElement?

Serialized output received from 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

The identifier of the node where the checkpoint was created.

Link copied to clipboard
val properties: JSONObject?

Additional data associated with the checkpoint. This can be used to store additional information about the agent's state.

Link copied to clipboard

The version of the checkpoint data structure

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard

Checks whether the AgentCheckpointData instance is marked as a tombstone.

Link copied to clipboard
fun AgentCheckpointData.toAgentContextData(rollbackStrategy: RollbackStrategy, additionalRollbackAction: suspend (AIAgentContext) -> Unit = {}): AgentContextData

Converts an instance of AgentCheckpointData to AgentContextData.