LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Graphs
    • Functional API
    • Pregel
    • Checkpointing
    • Storage
    • Caching
    • Types
    • Runtime
    • Config
    • Errors
    • Constants
    • Channels
    • Agents
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewGraphsFunctional APIPregelCheckpointingStorageCachingTypesRuntimeConfigErrorsConstantsChannelsAgents
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph_internal_runnableRunnableCallable
    Class●Since v0.6

    RunnableCallable

    Copy
    RunnableCallable(
      self,
      func: Callable[..., Any | Runnable] | None,
      afunc: 

    Bases

    Runnable

    Constructors

    Attributes

    Methods

    Inherited fromRunnable(langchain_core)

    Attributes

    AInputTypeAOutputTypeAinput_schemaAoutput_schemaAconfig_specs
    View source on GitHub
    Callable
    [
    .
    .
    .
    ,
    Awaitable
    [
    Any
    |
    Runnable
    ]
    ]
    |
    None
    =
    None
    ,
    *
    ,
    name
    :
    str
    |
    None
    =
    None
    ,
    tags
    :
    Sequence
    [
    str
    ]
    |
    None
    =
    None
    ,
    trace
    :
    bool
    =
    True
    ,
    recurse
    :
    bool
    =
    True
    ,
    explode_args
    :
    bool
    =
    False
    ,
    **
    kwargs
    :
    Any
    =
    {
    }
    )

    Methods

    Mget_nameMget_input_schemaMget_input_jsonschemaMget_output_schemaMget_output_jsonschemaMconfig_schemaMget_config_jsonschemaMget_graphMget_promptsMpipeMpickMassignMbatchMbatch_as_completedMabatchMabatch_as_completedMstreamMastreamMastream_logMastream_eventsMtransformMatransformMbindMwith_configMwith_listenersMwith_alistenersMwith_typesMwith_retryMmapMwith_fallbacksMas_tool
    constructor
    __init__
    NameType
    funcCallable[..., Any | Runnable] | None
    afuncCallable[..., Awaitable[Any | Runnable]] | None
    namestr | None
    tagsSequence[str] | None
    tracebool
    recursebool
    explode_argsbool
    attribute
    name
    attribute
    func: func
    attribute
    afunc: afunc
    attribute
    tags: tags
    attribute
    kwargs: kwargs
    attribute
    trace: trace
    attribute
    recurse: recurse
    attribute
    explode_args: explode_args
    attribute
    func_accepts: dict[str, tuple[str, Any]]
    method
    invoke
    method
    ainvoke

    A much simpler version of RunnableLambda that requires sync and async functions.