LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph-sdkencryptiontypesEncryptionContext
    Class●Since v0.2

    EncryptionContext

    Copy
    EncryptionContext(
      self,
      model: str | None = None,
      metadata: dict[str,

    Used in Docs

    • Add encryption at rest

    Constructors

    Attributes

    View source on GitHub
    typing
    .
    Any
    ]
    |
    None
    =
    None
    ,
    field
    :
    str
    |
    None
    =
    None
    )
    constructor
    __init__
    NameType
    modelstr | None
    metadatadict[str, typing.Any] | None
    fieldstr | None
    attribute
    model: model
    attribute
    field: field
    attribute
    metadata

    Context passed to encryption/decryption handlers.

    Contains arbitrary non-secret key-values that will be stored on encrypt. These key-values are intended to be sent to an external service that manages keys and handles the actual encryption and decryption of data.