toAgentContextData

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

Converts an instance of AgentCheckpointData to AgentContextData.

The conversion maps the messageHistory, nodeId, and lastOutput properties of AgentCheckpointData directly to a new AgentContextData instance.

Return

A new AgentContextData instance containing the message history, node ID, and last input from the AgentCheckpointData.