Skip to content

checkpointpostgres==1.0.6

Choose a tag to compare

langgraph-checkpoint-postgres 1.0.6

Summary of Changes

  • Added synchronous interface methods to AsyncPostgresSaver allowing for easier use in synchronous contexts

Detailed Changes

langgraph.checkpoint.postgres.aio.AsyncPostgresSaver

  • Added synchronous wrapper methods that internally use asyncio.run_coroutine_threadsafe():
    • list(): Synchronous method for listing checkpoints
    • get_tuple(): Synchronous method for retrieving a checkpoint tuple
    • put(): Synchronous method for saving a checkpoint
    • put_writes(): Synchronous method for storing intermediate writes
  • Added self.loop = asyncio.get_running_loop() to store the current event loop for use in synchronous methods