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

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

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

    push

    Copy
    push(
      repo_full_name: str,
      object: Any,
      *,
      api_url: str | 
    View source on GitHub
    None
    =
    None
    ,
    api_key
    :
    str
    |
    None
    =
    None
    ,
    parent_commit_hash
    :
    str
    =
    'latest'
    ,
    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
    parent_commit_hashstr
    Default:'latest'
    new_repo_is_publicbool
    Default:False
    new_repo_descriptionstr | None
    Default:None
    readmestr | None
    Default:None
    tagsSequence[str] | None
    Default:None

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

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

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

    Whether the prompt should be public.

    The description of the prompt.

    README content for the repository.

    Tags to associate with the prompt.