pydantic-graph 1.46.0__py3-none-any.whl → 1.48.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pydantic_graph/_utils.py +1 -1
- pydantic_graph/nodes.py +3 -2
- pydantic_graph/persistence/in_mem.py +1 -1
- {pydantic_graph-1.46.0.dist-info → pydantic_graph-1.48.0.dist-info}/METADATA +1 -1
- {pydantic_graph-1.46.0.dist-info → pydantic_graph-1.48.0.dist-info}/RECORD +7 -7
- {pydantic_graph-1.46.0.dist-info → pydantic_graph-1.48.0.dist-info}/WHEEL +0 -0
- {pydantic_graph-1.46.0.dist-info → pydantic_graph-1.48.0.dist-info}/licenses/LICENSE +0 -0
pydantic_graph/_utils.py
CHANGED
|
@@ -144,7 +144,7 @@ async def run_in_executor(func: Callable[_P, _R], *args: _P.args, **kwargs: _P.k
|
|
|
144
144
|
|
|
145
145
|
try:
|
|
146
146
|
from logfire._internal.config import (
|
|
147
|
-
LogfireNotConfiguredWarning, # pyright: ignore[reportAssignmentType
|
|
147
|
+
LogfireNotConfiguredWarning, # pyright: ignore[reportAssignmentType]
|
|
148
148
|
)
|
|
149
149
|
except ImportError: # pragma: lax no cover
|
|
150
150
|
|
pydantic_graph/nodes.py
CHANGED
|
@@ -68,11 +68,12 @@ class BaseNode(ABC, Generic[StateT, DepsT, NodeRunEndT]):
|
|
|
68
68
|
if snapshot_id := getattr(self, '__snapshot_id', None):
|
|
69
69
|
return snapshot_id
|
|
70
70
|
else:
|
|
71
|
-
|
|
71
|
+
snapshot_id = generate_snapshot_id(self.get_node_id())
|
|
72
|
+
object.__setattr__(self, '__snapshot_id', snapshot_id)
|
|
72
73
|
return snapshot_id
|
|
73
74
|
|
|
74
75
|
def set_snapshot_id(self, snapshot_id: str) -> None:
|
|
75
|
-
self
|
|
76
|
+
object.__setattr__(self, '__snapshot_id', snapshot_id)
|
|
76
77
|
|
|
77
78
|
@classmethod
|
|
78
79
|
@cache
|
|
@@ -92,7 +92,7 @@ class FullStatePersistence(BaseStatePersistence[StateT, RunEndT]):
|
|
|
92
92
|
Defaults to `True` so even if nodes or state are modified after the snapshot is taken,
|
|
93
93
|
the persistence history will record the value at the time of the snapshot.
|
|
94
94
|
"""
|
|
95
|
-
history: list[Snapshot[StateT, RunEndT]] = field(default_factory=list)
|
|
95
|
+
history: list[Snapshot[StateT, RunEndT]] = field(default_factory=list[Snapshot[StateT, RunEndT]])
|
|
96
96
|
"""List of snapshots taken during the graph run."""
|
|
97
97
|
_snapshots_type_adapter: pydantic.TypeAdapter[list[Snapshot[StateT, RunEndT]]] | None = field(
|
|
98
98
|
default=None, init=False, repr=False
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
pydantic_graph/__init__.py,sha256=qkrSmWLpnNhD7mLBWV70iS46vy2vFiU2zUModG31wPQ,593
|
|
2
|
-
pydantic_graph/_utils.py,sha256=
|
|
2
|
+
pydantic_graph/_utils.py,sha256=6v17q6dnTIXg6siwZorrssZK7qjR3ucAWvK54FPX1jg,6757
|
|
3
3
|
pydantic_graph/exceptions.py,sha256=aeaBf2H18dV7YCNZKZmiXiI6Fyys2qQdunZwd7TSCPk,1648
|
|
4
4
|
pydantic_graph/graph.py,sha256=i1m0klQG7iR5mDo3XlgA0BhLCskDVYIbwVXHU1zCNHI,33948
|
|
5
5
|
pydantic_graph/mermaid.py,sha256=u8xM8eEAOWV0TkqEAPJJ9jL2XEZnJ_H7yNGhulg7SL4,10045
|
|
6
|
-
pydantic_graph/nodes.py,sha256=
|
|
6
|
+
pydantic_graph/nodes.py,sha256=eoCOeuAPK6Uf-_66m4jPswyMHG2lRjhiASNyFr7YQsA,7494
|
|
7
7
|
pydantic_graph/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
pydantic_graph/beta/__init__.py,sha256=VVmbEFaCSXYHwXqS4pANg4B3cn_c86tT62tW_EXcuyw,751
|
|
9
9
|
pydantic_graph/beta/decision.py,sha256=x-Ta549b-j5hyBPUWFdwRQDRaJqnBHF1pfBP9L8I3vI,11239
|
|
@@ -21,8 +21,8 @@ pydantic_graph/beta/util.py,sha256=F7IkSC0U-tU1yOxncslyOrZ5HlrZIdafBJARsPetIHQ,3
|
|
|
21
21
|
pydantic_graph/persistence/__init__.py,sha256=NLBGvUWhem23EdMHHxtX0XgTS2vyixmuWtWmZKj_U58,8968
|
|
22
22
|
pydantic_graph/persistence/_utils.py,sha256=6ySxCc1lFz7bbLUwDLkoZWNqi8VNLBVU4xxJbKI23fQ,2264
|
|
23
23
|
pydantic_graph/persistence/file.py,sha256=XZy295cGc86HfUl_KuB-e7cECZW3bubiEdyJMVQ1OD0,6906
|
|
24
|
-
pydantic_graph/persistence/in_mem.py,sha256=
|
|
25
|
-
pydantic_graph-1.
|
|
26
|
-
pydantic_graph-1.
|
|
27
|
-
pydantic_graph-1.
|
|
28
|
-
pydantic_graph-1.
|
|
24
|
+
pydantic_graph/persistence/in_mem.py,sha256=ygXg3hvXTXH0xiCZ5xcIMlkx_YdN-LxIlpWSbs_y3-Y,6826
|
|
25
|
+
pydantic_graph-1.48.0.dist-info/METADATA,sha256=obx2E-3DVnxHgQ36pciKf282wujwgVf6FZ6bgY2xZ7I,3895
|
|
26
|
+
pydantic_graph-1.48.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
27
|
+
pydantic_graph-1.48.0.dist-info/licenses/LICENSE,sha256=vA6Jc482lEyBBuGUfD1pYx-cM7jxvLYOxPidZ30t_PQ,1100
|
|
28
|
+
pydantic_graph-1.48.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|