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-sdkauthtypesThreadTTL
    Class●Since v0.2

    ThreadTTL

    Copy
    ThreadTTL()

    Bases

    typing.TypedDict

    Constructors

    Attributes

    View source on GitHub
    constructor
    __init__
    NameType
    strategytyping.Literal['delete']
    ttlint
    attribute
    strategy: typing.Literal['delete']

    TTL strategy. Currently only 'delete' is supported.

    attribute
    ttl: int

    Time-to-live in minutes from now until the thread should be swept.

    Time-to-live configuration for a thread.

    Matches the OpenAPI schema where TTL is represented as an object with an optional strategy and a time value in minutes.