# HubRunnable

> **Class** in `langchain_classic`

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

An instance of a runnable stored in the LangChain Hub.

## Signature

```python
HubRunnable(
    self,
    owner_repo_commit: str,
    *,
    api_url: str | None = None,
    api_key: str | None = None,
    **kwargs: 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. |
| `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`) |
| `**kwargs` | `Any` | No | Additional keyword arguments to pass to the parent class. (default: `{}`) |

## Extends

- `RunnableBindingBase[Input, Output]`

## Constructors

```python
__init__(
    self,
    owner_repo_commit: str,
    *,
    api_url: str | None = None,
    api_key: str | None = None,
    **kwargs: Any = {},
) -> None
```

| Name | Type |
|------|------|
| `owner_repo_commit` | `str` |
| `api_url` | `str \| None` |
| `api_key` | `str \| None` |


## Properties

- `owner_repo_commit`

## ⚠️ Deprecated

Deprecated since version 1.0.7. langchain_classic.hub.pull is deprecated. Use the LangSmith SDK instead. Will be removed in version 2.0.0.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/42f8f79293cfb7589e5bc1d74a8ae4dfd0bf15e3/libs/langchain/langchain_classic/runnables/hub.py#L8)