langchain.hub.pull¶

langchain.hub.pull(owner_repo_commit: str, *, api_url: Optional[str] = None, api_key: Optional[str] = None) Any[source]¶

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

Parameters
  • owner_repo_commit (str) – The full name of the repo to pull from in the format of owner/repo:commit_hash.

  • 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.

Return type

Any