mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-22 17:45:09 +02:00
chore: rename DiffChannel/DiffDelta/DiffChainValue to Delta* across libs
Renames the diff-channel types to DeltaChannel, DeltaValue, and DeltaChainValue for consistency with the settled naming convention.
This commit is contained in:
@@ -438,7 +438,7 @@ class PostgresSaver(BasePostgresSaver):
|
||||
*,
|
||||
cur: Any = None,
|
||||
) -> dict[str, Any]:
|
||||
from langgraph.checkpoint.base import DiffChainValue
|
||||
from langgraph.checkpoint.base import DeltaChainValue
|
||||
|
||||
result: dict[str, Any] = {}
|
||||
for channel, current_payload in diff_channel_payloads.items():
|
||||
@@ -469,7 +469,7 @@ class PostgresSaver(BasePostgresSaver):
|
||||
break
|
||||
|
||||
payloads.reverse()
|
||||
result[channel] = DiffChainValue(
|
||||
result[channel] = DeltaChainValue(
|
||||
base=base, deltas=[p["d"] for p in payloads]
|
||||
)
|
||||
return result
|
||||
|
||||
@@ -399,7 +399,7 @@ class AsyncPostgresSaver(BasePostgresSaver):
|
||||
*,
|
||||
cur: Any,
|
||||
) -> dict[str, Any]:
|
||||
from langgraph.checkpoint.base import DiffChainValue
|
||||
from langgraph.checkpoint.base import DeltaChainValue
|
||||
|
||||
result: dict[str, Any] = {}
|
||||
for channel, current_payload in diff_channel_payloads.items():
|
||||
@@ -430,7 +430,7 @@ class AsyncPostgresSaver(BasePostgresSaver):
|
||||
break
|
||||
|
||||
payloads.reverse()
|
||||
result[channel] = DiffChainValue(
|
||||
result[channel] = DeltaChainValue(
|
||||
base=base, deltas=[p["d"] for p in payloads]
|
||||
)
|
||||
return result
|
||||
|
||||
@@ -223,7 +223,7 @@ class BasePostgresSaver(BaseCheckpointSaver[str]):
|
||||
*,
|
||||
cur: Any = None,
|
||||
) -> dict[str, Any]:
|
||||
"""Override in sync/async subclasses. Resolves diff-chain blobs to DiffChainValue."""
|
||||
"""Override in sync/async subclasses. Resolves diff-chain blobs to DeltaChainValue."""
|
||||
raise NotImplementedError
|
||||
|
||||
def _dump_blobs(
|
||||
|
||||
Reference in New Issue
Block a user