LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • MCP Adapters
    • Overview
    • Agents
    • Callbacks
    • Chains
    • Chat models
    • Embeddings
    • Evaluation
    • Globals
    • Hub
    • Memory
    • Output parsers
    • Retrievers
    • Runnables
    • LangSmith
    • Storage
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    MCP Adapters
    OverviewAgentsCallbacksChainsChat modelsEmbeddingsEvaluationGlobalsHubMemoryOutput parsersRetrieversRunnablesLangSmithStorage
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-classicrunnableshubHubRunnable
    Class●Since v1.0

    HubRunnable

    Copy
    HubRunnable(
      self,
      owner_repo_commit: str,
      *,
      api_url: str | None = None,
      api_key

    Bases

    RunnableBindingBase[Input, Output]

    Constructors

    Attributes

    Inherited fromRunnableBindingBase(langchain_core)

    Attributes

    AboundAkwargsAconfigAconfig_factories
    View source on GitHub
    :
    str
    |
    None
    =
    None
    ,
    **
    kwargs
    :
    Any
    =
    {
    }
    )
    A
    custom_input_type
    Acustom_output_type
    Amodel_config
    AInputType
    AOutputType
    Aconfig_specs

    Methods

    Mget_nameMget_input_schemaMget_output_schemaMget_graphMis_lc_serializableMget_lc_namespaceMinvokeMainvokeMbatchMabatchMbatch_as_completedMabatch_as_completedMstreamMastreamMastream_eventsMtransformMatransform

    Inherited fromRunnableSerializable(langchain_core)

    Attributes

    AnameAmodel_config

    Methods

    Mto_jsonMconfigurable_fieldsMconfigurable_alternatives

    Inherited fromSerializable(langchain_core)

    Attributes

    Alc_secretsAlc_attributesAmodel_config

    Methods

    Mis_lc_serializableMget_lc_namespaceMlc_idMto_jsonMto_json_not_implemented

    Inherited fromRunnable(langchain_core)

    Attributes

    AnameAInputTypeAOutputTypeAinput_schemaAoutput_schemaAconfig_specs

    Methods

    Mget_nameMget_input_schemaMget_input_jsonschemaMget_output_schemaMget_output_jsonschemaM

    Parameters

    NameTypeDescription
    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_urlstr | None
    Default: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_keystr | None
    Default:None

    The API key to use to authenticate with the LangChain Hub API.

    **kwargsAny
    Default:{}
    constructor
    __init__
    NameType
    owner_repo_commitstr
    api_urlstr | None
    api_keystr | None
    attribute
    owner_repo_commit: str

    An instance of a runnable stored in the LangChain Hub.

    config_schema
    Mget_config_jsonschema
    Mget_graph
    Mget_prompts
    Mpipe
    Mpick
    Massign
    Minvoke
    Mainvoke
    Mbatch
    Mbatch_as_completed
    Mabatch
    Mabatch_as_completed
    Mstream
    Mastream
    Mastream_log
    Mastream_events
    Mtransform
    Matransform
    Mbind
    Mwith_config
    Mwith_listeners
    Mwith_alisteners
    Mwith_types
    Mwith_retry
    Mmap
    Mwith_fallbacks
    Mas_tool

    Additional keyword arguments to pass to the parent class.