Skip to content

checkpoint==2.0.17

Choose a tag to compare

@github-actions github-actions released this 06 Mar 21:39
cbf26a5

langgraph-checkpoint 2.0.17

Summary of Changes

  • Added TTL (time-to-live) support for store items, allowing automatic expiration of data (#3704)
  • Improved error handling for Pydantic objects in the JSON serializer, now returning original data when classes can't be reconstructed (#3685)

Detailed Changes

langgraph.store.base.BaseStore

  • Added supports_ttl = False flag to base class. Store implementations can set this to True to enable TTL support (#3704)
  • Enhanced get, search, and put methods with TTL functionality (#3704)
  • Added TTL validation in put method to prevent setting TTLs with unsupported stores (#3704)
  • Updated delete method to properly handle TTL parameter (#3704)

langgraph.store.base.GetOp

  • Added refresh_ttl: bool = True parameter to control whether TTLs should be refreshed when retrieving items (#3704)

langgraph.store.base.SearchOp

  • Added refresh_ttl: bool = True parameter to control whether TTLs should be refreshed for items returned in search results (#3704)

langgraph.store.base.PutOp

  • Added ttl: Optional[float] = None parameter to set expiration time (in minutes) for stored items (#3704)

langgraph.store.base.batch.AsyncBatchedBaseStore

  • Updated methods to properly handle and pass the new TTL parameters (#3704)

langgraph.checkpoint.serde.jsonplus.JsonPlusSerializer

  • Improved error handling for Pydantic objects during deserialization (#3685)
  • When a Pydantic class can't be found or reconstructed, now returns the original kwargs dictionary instead of None, preserving the data (#3685)