pull#

langchain.hub.pull(owner_repo_commit: str, *, include_model: bool | None = None, api_url: str | None = None, api_key: str | None = None) β†’ Any[source]#

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

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

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

  • include_model (bool | None)

Return type:

Any