Skip to content

Commit 8271660

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 5240a85 commit 8271660

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
@@ -201,7 +201,7 @@ def load_tool(
201201

202202
def load_toolset(
203203
self,
204-
name: str,
204+
name: Optional[str] = None,
205205
auth_token_getters: dict[str, Callable[[], str]] = {},
206206
bound_params: Mapping[str, Union[Callable[[], Any], Any]] = {},
207207
strict: bool = False,
@@ -210,7 +210,7 @@ def load_toolset(
210210
Synchronously fetches a toolset and loads all tools defined within it.
211211
212212
Args:
213-
name: Name of the toolset to load tools.
213+
name: Name of the toolset to load. If None, loads the default toolset.
214214
auth_token_getters: A mapping of authentication service names to
215215
callables that return the corresponding authentication token.
216216
bound_params: A mapping of parameter names to bind to specific values or

0 commit comments

Comments
 (0)