LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    LangGraph Store
    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
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph-sdkencryptiontypesDecryptResult
    Class●Since v0.4

    DecryptResult

    Copy
    DecryptResult(
        self,
        plaintext: T,
        replacement: T | None = None,
    )

    Bases

    typing.Generic[T]

    Constructors

    Attributes

    View source on GitHub
    constructor
    __init__
    NameType
    plaintextT
    replacementT | None
    attribute
    plaintext: T
    attribute
    replacement: T | None

    Decrypted data and optional replacement ciphertext.

    Return this from a decrypt handler when encrypted data should be replaced, such as after rotating its encryption key. Returning plaintext directly remains supported when no replacement is needed.