{"record":{"id":"8d59f8aa5cb602e6","repo":"langchain-ai/langgraph","slug":"snapshot-frequency-must-be-a-positive-int-got-sn","errorCode":null,"errorMessage":"snapshot_frequency must be a positive int, got {snapshot_frequency}","messagePattern":"snapshot_frequency must be a positive int, got (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/channels/delta.py","lineNumber":77,"sourceCode":"            and batching-invariant as described above.\n        typ: The value type (e.g. `list`, `dict`). Inferred automatically\n            from the outer type when used inside `Annotated[T, DeltaChannel(...)]`.\n        snapshot_frequency: Every Nth update to this channel writes a snapshot\n            blob (default `1000`). Must be a positive int.\n    \"\"\"\n\n    __slots__ = (\"value\", \"reducer\", \"snapshot_frequency\")\n    value: Value | Any\n\n    def __init__(\n        self,\n        reducer: Callable[[Any, Sequence[Any]], Any],\n        typ: type[Value] | None = None,\n        *,\n        snapshot_frequency: int = 1000,\n    ) -> None:\n        if snapshot_frequency <= 0:\n            raise ValueError(\n                f\"snapshot_frequency must be a positive int, got {snapshot_frequency}\"\n            )\n        if typ is None:\n            typ = list  # type: ignore[assignment]  # placeholder; overridden by _is_field_channel\n        super().__init__(typ)\n        self.reducer = reducer\n        self.snapshot_frequency = snapshot_frequency\n        typ = _strip_extras(typ)\n        if typ in (collections.abc.Sequence, collections.abc.MutableSequence):\n            typ = list\n        if typ in (collections.abc.Set, collections.abc.MutableSet):\n            typ = set\n        if typ in (collections.abc.Mapping, collections.abc.MutableMapping):\n            typ = dict\n        self.typ = typ\n        self.value: Any = MISSING\n\n    def __eq__(self, other: object) -> bool:","sourceCodeStart":59,"sourceCodeEnd":95,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/channels/delta.py#L59-L95","documentation":"Error \"snapshot_frequency must be a positive int, got {snapshot_frequency}\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/langgraph/langgraph/channels/delta.py:77 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"38031739e551638e373fb553453256c23feeb41f","analyzedAt":"2026-08-26T18:02:49.312Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}