LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Graphs
    • Functional API
    • Pregel
    • Checkpointing
    • Storage
    • Caching
    • Types
    • Runtime
    • Config
    • Errors
    • Constants
    • Channels
    • Agents
    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

    OverviewGraphsFunctional APIPregelCheckpointingStorageCachingTypesRuntimeConfigErrorsConstantsChannelsAgents
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    PythonlanggraphruntimeServerInfo
    Class●Since v1.1

    ServerInfo

    Metadata injected by LangGraph Server. None when running open-source LangGraph without LangSmith deployments.

    Copy
    ServerInfo(
      self,
      assistant_id: str,
      graph_id: str,
      user: BaseUser | None = None
    )

    Constructors

    constructor
    __init__
    NameType
    assistant_idstr
    graph_idstr
    userBaseUser | None

    Attributes

    attribute
    assistant_id: str

    The assistant ID for the current execution.

    attribute
    graph_id: str

    The graph ID for the current execution.

    attribute
    user: BaseUser | None

    The authenticated user, if any.

    This implements the BaseUser protocol from langgraph_sdk.auth.types, which supports both attribute access (e.g. user.identity) and dict-like access (e.g. user["identity"]).

    View source on GitHub