mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-21 14:18:52 +00:00
Update default recursion_limit, update docs (#12134)
<!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. -->
This commit is contained in:
parent
4f23aa677a
commit
d0505c0d47
@ -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(
|
||||
|
@ -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,
|
||||
),
|
||||
),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user