AgentCheckpointData
Represents the checkpoint data for an agent's state during a session.
Constructors
Link copied to clipboard
constructor(checkpointId: String, createdAt: Instant, messageHistory: List<Message>, llmParams: LLMParams? = null, version: Long, graphProperties: GraphCheckpointProperties, properties: JSONObject? = null, llmModel: LLModel? = null, tools: List<String>? = null, storage: JSONObject? = null, agentIterations: Int = 0)
Creates an instance of AgentCheckpointData with graph properties.
constructor(checkpointId: String, createdAt: Instant, messageHistory: List<Message>, llmParams: LLMParams? = null, version: Long, plannerProperties: PlannerCheckpointProperties, properties: JSONObject? = null, llmModel: LLModel? = null, tools: List<String>? = null, storage: JSONObject? = null, agentIterations: Int = 0)
Creates an instance of AgentCheckpointData with planner properties.
Properties
Link copied to clipboard
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
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
Link copied to clipboard
Additional data associated with the checkpoint. This can be used to store additional information about the agent's state.
Link copied to clipboard
Functions
Link copied to clipboard
Checks whether the AgentCheckpointData instance is marked as a tombstone.
Link copied to clipboard
fun AgentCheckpointData.toAgentContextData(rollbackStrategy: RollbackStrategy, additionalRollbackActions: suspend (AIAgentContext) -> Unit = {}): AgentContextData?
Converts an instance of AgentCheckpointData to AgentContextData.