rollbackToLatestCheckpoint
suspend fun rollbackToLatestCheckpoint(agentContext: AIAgentContextBase): AgentCheckpointData?(source)
Rolls back an agent's state to the latest checkpoint.
This method retrieves the most recent checkpoint for the agent and, if found, sets the agent's context to the state captured in that checkpoint.
Return
The checkpoint data that was restored or null if no checkpoint was found
Parameters
agentContext
The context of the agent to roll back