From 506c369a0866609018d28847ea43acabb3761837 Mon Sep 17 00:00:00 2001 From: Anubhav Dhawan Date: Sat, 17 May 2025 01:59:13 +0530 Subject: [PATCH] feat: Make name optional while loading toolset through sync client This aligns with the async client's `load_toolset` method. --- packages/toolbox-core/src/toolbox_core/sync_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/toolbox-core/src/toolbox_core/sync_client.py b/packages/toolbox-core/src/toolbox_core/sync_client.py index 6bb54b45..96d4bba7 100644 --- a/packages/toolbox-core/src/toolbox_core/sync_client.py +++ b/packages/toolbox-core/src/toolbox_core/sync_client.py @@ -108,7 +108,7 @@ def load_tool( def load_toolset( self, - name: str, + name: Optional[str] = None, auth_token_getters: dict[str, Callable[[], str]] = {}, bound_params: Mapping[str, Union[Callable[[], Any], Any]] = {}, strict: bool = False, @@ -117,7 +117,7 @@ def load_toolset( Synchronously fetches a toolset and loads all tools defined within it. Args: - name: Name of the toolset to load tools. + name: Name of the toolset to load. If None, loads the default toolset. auth_token_getters: A mapping of authentication service names to callables that return the corresponding authentication token. bound_params: A mapping of parameter names to bind to specific values or