# pull

> **Function** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/hub/pull)

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

## Signature

```python
pull(
    owner_repo_commit: str,
    *,
    include_model: bool | None = None,
    api_url: str | None = None,
    api_key: str | None = None,
) -> Any
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `owner_repo_commit` | `str` | Yes | 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. |
| `include_model` | `bool \| None` | No | Whether to include the model configuration in the pulled prompt. (default: `None`) |
| `api_url` | `str \| None` | No | 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. (default: `None`) |
| `api_key` | `str \| None` | No | The API key to use to authenticate with the LangChain Hub API. (default: `None`) |

## Returns

`Any`

The pulled LangChain object.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/ee95ad6907f5eab94644183393a20aa2a032bb19/libs/langchain/langchain_classic/hub.py#L111)