diff --git a/libs/langchain/langchain/schema/runnable/config.py b/libs/langchain/langchain/schema/runnable/config.py index 408339fcf..77f68c26f 100644 --- a/libs/langchain/langchain/schema/runnable/config.py +++ b/libs/langchain/langchain/schema/runnable/config.py @@ -74,19 +74,20 @@ class RunnableConfig(TypedDict, total=False): max_concurrency: Optional[int] """ Maximum number of parallel calls to make. If not provided, defaults to - ThreadPoolExecutor's default. This is ignored if an executor is provided. + ThreadPoolExecutor's default. """ recursion_limit: int """ - Maximum number of times a call can recurse. If not provided, defaults to 10. + Maximum number of times a call can recurse. If not provided, defaults to 25. """ configurable: Dict[str, Any] """ - Runtime values for attributes previously made configurable by this Runnable, - or sub-Runnables, through .make_configurable(). Check .output_schema for - a description of the attributes that have been made configurable. + Runtime values for attributes previously made configurable on this Runnable, + or sub-Runnables, through .configurable_fields() or .configurable_alternatives(). + Check .output_schema() for a description of the attributes that have been made + configurable. """ @@ -96,7 +97,7 @@ def ensure_config(config: Optional[RunnableConfig] = None) -> RunnableConfig: metadata={}, callbacks=None, locals={}, - recursion_limit=10, + recursion_limit=25, ) if config is not None: empty.update( diff --git a/libs/langchain/tests/unit_tests/schema/runnable/test_runnable.py b/libs/langchain/tests/unit_tests/schema/runnable/test_runnable.py index 5632a4539..15b166228 100644 --- a/libs/langchain/tests/unit_tests/schema/runnable/test_runnable.py +++ b/libs/langchain/tests/unit_tests/schema/runnable/test_runnable.py @@ -1291,7 +1291,7 @@ async def test_default_method_implementations(mocker: MockerFixture) -> None: tags=[], callbacks=None, locals={}, - recursion_limit=10, + recursion_limit=25, ), ), mocker.call( @@ -1301,7 +1301,7 @@ async def test_default_method_implementations(mocker: MockerFixture) -> None: tags=[], callbacks=None, locals={}, - recursion_limit=10, + recursion_limit=25, ), ), ]