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-classichubpush
    Function●Since v1.0

    push

    Push an object to the hub and returns the URL it can be viewed at in a browser.

    Copy
    push(
      repo_full_name: str,
      object: Any,
      *,
      api_url: str | None = None,
      api_key: str | None = None,
      parent_commit_hash: str | None = None,
      new_repo_is_public: bool = False,
      new_repo_description: str | None = None,
      readme: str | None = None,
      tags: Sequence[str] | None = None
    ) -> str

    Parameters

    NameTypeDescription
    repo_full_name*str

    The full name of the prompt to push to in the format of owner/prompt_name or prompt_name.

    object*Any

    The LangChain object to serialize and push to the hub.

    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.

    parent_commit_hashstr | None
    Default:None

    The commit hash of the parent commit to push to. Defaults to the latest commit automatically.

    new_repo_is_publicbool
    Default:False

    Whether the prompt should be public.

    new_repo_descriptionstr | None
    Default:None

    The description of the prompt.

    readmestr | None
    Default:None

    README content for the repository.

    tagsSequence[str] | None
    Default:None

    Tags to associate with the prompt.

    View source on GitHub