Optional. List of allowed python modules to de-serialize custom objects from msgpack.
Known safe types (langgraph.checkpoint.serde.jsonplus.SAFE_MSGPACK_TYPES) are always allowed regardless of this setting. Use this to allowlist your custom Pydantic models, dataclasses, and other user-defined types.
If True (default), unregistered types will log a warning but still be deserialized. If None, only known safe types will be deserialized; unregistered types will be blocked.
Example - allowlist specific types (no warnings for these): {... "serde": { "allowed_msgpack_modules": [ ["my_agent.models", "MyState"], ] } }
Example - strict mode (only safe types allowed): {... "serde": { "allowed_msgpack_modules": null } }