Skip to content

Commit 9dd24ce

Browse files
committed
feat: Make name optional while loading toolset through sync client
This aligns with the async client's `load_toolset` method.
1 parent 4351473 commit 9dd24ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/toolbox-core/src/toolbox_core/sync_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def load_tool(
121121

122122
def load_toolset(
123123
self,
124-
name: str,
124+
name: Optional[str] = None,
125125
auth_token_getters: dict[str, Callable[[], str]] = {},
126126
bound_params: Mapping[str, Union[Callable[[], Any], Any]] = {},
127127
strict: bool = False,
@@ -130,7 +130,7 @@ def load_toolset(
130130
Synchronously fetches a toolset and loads all tools defined within it.
131131
132132
Args:
133-
name: Name of the toolset to load tools.
133+
name: Name of the toolset to load. If None, loads the default toolset.
134134
auth_token_getters: A mapping of authentication service names to
135135
callables that return the corresponding authentication token.
136136
bound_params: A mapping of parameter names to bind to specific values or

0 commit comments

Comments
 (0)