toAgentContextData

Converts an instance of AgentCheckpointData to AgentContextData.

The conversion maps the messageHistory, nodeId, and lastInput 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.