From d1b1366764f71a686198eca1f7600857628cac16 Mon Sep 17 00:00:00 2001 From: Anubhav Dhawan Date: Mon, 19 May 2025 21:09:47 +0530 Subject: [PATCH] docs: Update docstring for strict flag to make it unambiguous --- packages/toolbox-core/src/toolbox_core/client.py | 2 +- packages/toolbox-core/src/toolbox_core/sync_client.py | 2 +- .../toolbox-langchain/src/toolbox_langchain/async_client.py | 2 +- packages/toolbox-langchain/src/toolbox_langchain/client.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/toolbox-core/src/toolbox_core/client.py b/packages/toolbox-core/src/toolbox_core/client.py index cd3879ff..df8c2743 100644 --- a/packages/toolbox-core/src/toolbox_core/client.py +++ b/packages/toolbox-core/src/toolbox_core/client.py @@ -227,7 +227,7 @@ async def load_toolset( bound_params: A mapping of parameter names to bind to specific values or callables that are called to produce values as needed. strict: If True, raises an error if *any* loaded tool instance fails - to utilize at least one provided parameter or auth token (if any + to utilize all of the given parameters or auth tokens. (if any provided). If False (default), raises an error only if a user-provided parameter or auth token cannot be applied to *any* loaded tool across the set. diff --git a/packages/toolbox-core/src/toolbox_core/sync_client.py b/packages/toolbox-core/src/toolbox_core/sync_client.py index 7ec94a44..5e0c2d41 100644 --- a/packages/toolbox-core/src/toolbox_core/sync_client.py +++ b/packages/toolbox-core/src/toolbox_core/sync_client.py @@ -122,7 +122,7 @@ def load_toolset( bound_params: A mapping of parameter names to bind to specific values or callables that are called to produce values as needed. strict: If True, raises an error if *any* loaded tool instance fails - to utilize at least one provided parameter or auth token (if any + to utilize all of the given parameters or auth tokens. (if any provided). If False (default), raises an error only if a user-provided parameter or auth token cannot be applied to *any* loaded tool across the set. diff --git a/packages/toolbox-langchain/src/toolbox_langchain/async_client.py b/packages/toolbox-langchain/src/toolbox_langchain/async_client.py index 95e384c8..90ca2a0c 100644 --- a/packages/toolbox-langchain/src/toolbox_langchain/async_client.py +++ b/packages/toolbox-langchain/src/toolbox_langchain/async_client.py @@ -119,7 +119,7 @@ async def aload_toolset( bound_params: An optional mapping of parameter names to their bound values. strict: If True, raises an error if *any* loaded tool instance fails - to utilize at least one provided parameter or auth token (if any + to utilize all of the given parameters or auth tokens. (if any provided). If False (default), raises an error only if a user-provided parameter or auth token cannot be applied to *any* loaded tool across the set. diff --git a/packages/toolbox-langchain/src/toolbox_langchain/client.py b/packages/toolbox-langchain/src/toolbox_langchain/client.py index 1d395585..ab9ff7c0 100644 --- a/packages/toolbox-langchain/src/toolbox_langchain/client.py +++ b/packages/toolbox-langchain/src/toolbox_langchain/client.py @@ -116,7 +116,7 @@ async def aload_toolset( bound_params: An optional mapping of parameter names to their bound values. strict: If True, raises an error if *any* loaded tool instance fails - to utilize at least one provided parameter or auth token (if any + to utilize all of the given parameters or auth tokens. (if any provided). If False (default), raises an error only if a user-provided parameter or auth token cannot be applied to *any* loaded tool across the set. @@ -242,7 +242,7 @@ def load_toolset( bound_params: An optional mapping of parameter names to their bound values. strict: If True, raises an error if *any* loaded tool instance fails - to utilize at least one provided parameter or auth token (if any + to utilize all of the given parameters or auth tokens. (if any provided). If False (default), raises an error only if a user-provided parameter or auth token cannot be applied to *any* loaded tool across the set.