langchain_postgres.checkpoint.CheckpointSerializer

class langchain_postgres.checkpoint.CheckpointSerializer[source]

A serializer for serializing and deserializing objects to and from bytes.

Methods

__init__()

dumps(obj)

Serialize an object to bytes.

loads(data)

Deserialize an object from bytes.

__init__()
abstract dumps(obj: Checkpoint) bytes[source]

Serialize an object to bytes.

Parameters

obj (Checkpoint) –

Return type

bytes

abstract loads(data: bytes) Checkpoint[source]

Deserialize an object from bytes.

Parameters

data (bytes) –

Return type

Checkpoint