The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
langchain[patch]: Fix `config` arg detection for wrapped lambdarunnable (#14230)
Vincent Brouwers67662564f345
diff --git a/libs/core/langchain_core/runnables/base.py b/libs/core/langchain_core/runnables/base.pyindex 1943de8285..d0d1d8d06f 100644--- a/libs/core/langchain_core/runnables/base.py+++ b/libs/core/langchain_core/runnables/base.py@@ -6,7 +6,7 @@ import threadingfrom abc import ABC, abstractmethodfrom concurrent.futures import FIRST_COMPLETED, waitfrom copy import deepcopy-from functools import partial+from functools import partial, wrapsfrom itertools import teefrom operator import itemgetterfrom typing import (@@ -2518,6 +2518,7 @@ class RunnableLambda(Runnable[Input, Output]):afunc = self.afuncelse:+ @wraps(self.func)async def f(*args, **kwargs): # type: ignore[no-untyped-def]return await asyncio.get_running_loop().run_in_executor(None, partial(self.func, **kwargs), *args