{"record":{"id":"06851f0de6f4eab9","repo":"langchain-ai/langgraph","slug":"no-synchronous-function-provided-to-self-name","errorCode":null,"errorMessage":"No synchronous function provided to \"{self.name}\".\nEither initialize with a synchronous function or invoke via the async API (ainvoke, astream, etc.)","messagePattern":"No synchronous function provided to \"(.+?)\"\\.\nEither initialize with a synchronous function or invoke via the async API \\(ainvoke, astream, etc\\.\\)","errorType":"validation","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/_internal/_runnable.py","lineNumber":378,"sourceCode":"                    )\n                continue\n\n            # If the kwarg is accepted by the function, store the key / runtime attribute to inject\n            self.func_accepts[kw] = (runtime_key, default)\n\n    def __repr__(self) -> str:\n        repr_args = {\n            k: v\n            for k, v in self.__dict__.items()\n            if k not in {\"name\", \"func\", \"afunc\", \"config\", \"kwargs\", \"trace\"}\n        }\n        return f\"{self.get_name()}({', '.join(f'{k}={v!r}' for k, v in repr_args.items())})\"\n\n    def invoke(\n        self, input: Any, config: RunnableConfig | None = None, **kwargs: Any\n    ) -> Any:\n        if self.func is None:\n            raise TypeError(\n                f'No synchronous function provided to \"{self.name}\".'\n                \"\\nEither initialize with a synchronous function or invoke\"\n                \" via the async API (ainvoke, astream, etc.)\"\n            )\n        if config is None:\n            config = ensure_config()\n        if self.explode_args:\n            args, _kwargs = input\n            kwargs = {**self.kwargs, **_kwargs, **kwargs}\n        else:\n            args = (input,)\n            kwargs = {**self.kwargs, **kwargs}\n\n        runtime = config.get(CONF, {}).get(CONFIG_KEY_RUNTIME)\n\n        for kw, (runtime_key, default) in self.func_accepts.items():\n            # If the kwarg is already set, use the set value\n            if kw in kwargs:","sourceCodeStart":360,"sourceCodeEnd":396,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/_internal/_runnable.py#L360-L396","documentation":"Error \"No synchronous function provided to \"{self.name}\".\nEither initialize with a synchronous function or invoke via the async API (ainvoke, astream, etc.)\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/langgraph/langgraph/_internal/_runnable.py:378 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"}