LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • MCP Adapters
    • Overview
    • Agents
    • Callbacks
    • Chains
    • Chat models
    • Embeddings
    • Evaluation
    • Globals
    • Hub
    • Memory
    • Output parsers
    • Retrievers
    • Runnables
    • LangSmith
    • Storage
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    MCP Adapters
    OverviewAgentsCallbacksChainsChat modelsEmbeddingsEvaluationGlobalsHubMemoryOutput parsersRetrieversRunnablesLangSmithStorage
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-classichubpull
    Function●Since v1.0

    pull

    Pull an object from the hub and returns it as a LangChain object.

    Copy
    pull(
      owner_repo_commit: str,
      *,
      include_model: bool | None = None,
      api_url: str | None = None,
      api_key: str | None = None
    ) -> Any

    Parameters

    NameTypeDescription
    owner_repo_commit*str

    The full name of the prompt to pull from in the format of owner/prompt_name:commit_hash or owner/prompt_name or just prompt_name if it's your own prompt.

    include_modelbool | None
    Default:None

    Whether to include the model configuration in the pulled prompt.

    api_urlstr | None
    Default:None

    The URL of the LangChain Hub API. Defaults to the hosted API service if you have an API key set, or a localhost instance if not.

    api_keystr | None
    Default:None

    The API key to use to authenticate with the LangChain Hub API.

    View source on GitHub