langchain.hub
.pull¶
- langchain.hub.pull(owner_repo_commit: str, *, include_model: Optional[bool] = None, api_url: Optional[str] = None, api_key: Optional[str] = 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 (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.
include_model (Optional[bool]) –
- Return type
Any