createPlannerCheckpoint
suspend fun createPlannerCheckpoint(agentContext: AIAgentContext, state: Any, stateType: TypeToken, plan: Any, planType: TypeToken, executionPoint: PlannerAgentExecutionPoint, version: Long, checkpointId: String? = null): AgentCheckpointData?(source)
Creates a checkpoint of the agent's current state.
This method captures the agent's message history, current state, and plan.
Parameters
agentContext
The context of the agent to checkpoint.
state
The current state of the agent.
plan
The current plan of the agent.
executionPoint
The execution point of the planner agent.