langchain.hub.pushΒΆ

langchain.hub.push(repo_full_name: str, object: Any, *, api_url: Optional[str] = None, api_key: Optional[str] = None, parent_commit_hash: Optional[str] = 'latest', new_repo_is_public: bool = True, new_repo_description: str = '') str[source]ΒΆ

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

Parameters
  • repo_full_name (str) – The full name of the repo to push to in the format of owner/repo.

  • object (Any) – The LangChain to serialize and push to the hub.

  • api_url (Optional[str]) – 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_key (Optional[str]) – The API key to use to authenticate with the LangChain Hub API.

  • parent_commit_hash (Optional[str]) – The commit hash of the parent commit to push to. Defaults to the latest commit automatically.

  • new_repo_is_public (bool) – Whether the repo should be public. Defaults to True (Public by default).

  • new_repo_description (str) – The description of the repo. Defaults to an empty string.

Return type

str