{"record":{"id":"048701fb774b609b","repo":"langchain-ai/langgraph","slug":"expected-a-runnable-callable-or-dict-instead-got","errorCode":null,"errorMessage":"Expected a Runnable, callable or dict.Instead got an unsupported type: {type(thing)}","messagePattern":"Expected a Runnable, callable or dict\\.Instead got an unsupported type: (.+?)","errorType":"validation","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/_internal/_runnable.py","lineNumber":578,"sourceCode":"    \"\"\"\n    if isinstance(thing, Runnable):\n        return thing\n    elif is_async_generator(thing) or inspect.isgeneratorfunction(thing):\n        return RunnableLambda(thing, name=name)\n    elif callable(thing):\n        if is_async_callable(thing):\n            return RunnableCallable(None, thing, name=name, trace=trace)\n        else:\n            return RunnableCallable(\n                thing,\n                wraps(thing)(partial(run_in_executor, None, thing)),  # type: ignore[arg-type]\n                name=name,\n                trace=trace,\n            )\n    elif isinstance(thing, dict):\n        return RunnableParallel(thing)\n    else:\n        raise TypeError(\n            f\"Expected a Runnable, callable or dict.\"\n            f\"Instead got an unsupported type: {type(thing)}\"\n        )\n\n\nclass RunnableSeq(Runnable):\n    \"\"\"Sequence of `Runnable`, where the output of each is the input of the next.\n\n    `RunnableSeq` is a simpler version of `RunnableSequence` that is internal to\n    LangGraph.\n    \"\"\"\n\n    def __init__(\n        self,\n        *steps: RunnableLike,\n        name: str | None = None,\n        trace_inputs: Callable[[Any], Any] | None = None,\n        trace_outputs: Callable[[Any], Any] | None = None,","sourceCodeStart":560,"sourceCodeEnd":596,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/_internal/_runnable.py#L560-L596","documentation":"Error \"Expected a Runnable, callable or dict.Instead got an unsupported type: {type(thing)}\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/langgraph/langgraph/_internal/_runnable.py:578 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"38031739e551638e373fb553453256c23feeb41f","analyzedAt":"2026-08-26T18:02:49.312Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}