LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    โŒ˜I

    Chat LangChain

    What can I help with?

    Enter to sendยทShift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-coreutilsuuiduuid7
    Functionโ—Since v1.8

    uuid7

    Copy
    uuid7(
        nanoseconds: int | None = None,
    ) -> UUID

    Used in Docs

    • A2A endpoint in Agent Server
    • Build a SQL assistant with on-demand skills
    • Build a voice agent with LangChain
    • Build customer support with handoffs
    • Configure threads
    (3 more not shown)
    View source on GitHub

    Parameters

    NameTypeDescription
    nanosecondsint | None
    Default:None

    Optional ns timestamp. If not provided, uses current time.

    Generate a UUID from a Unix timestamp in nanoseconds and random bits.

    UUIDv7 objects feature monotonicity within a millisecond.