# Function loadCheckpointState

- loadCheckpointState(
  sessionId: string,
  customDir?: string,
  ): PipelineCheckpointState | null

  Load checkpoint state for a session. Returns null if no checkpoints exist.

  #### Parameters

  - sessionId: string
  - `Optional` customDir: string

  #### Returns PipelineCheckpointState | null

  - Defined in packages/nexus-agents/src/pipeline/pipeline-checkpoint.ts:124