Skip to content

Commit 9527824

Browse files
authored
feat: Make name optional while loading toolset through sync client (#235)
This aligns with the async client's `load_toolset` method.
1 parent 7dbf087 commit 9527824

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
@@ -108,7 +108,7 @@ def load_tool(
108108

109109
def load_toolset(
110110
self,
111-
name: str,
111+
name: Optional[str] = None,
112112
auth_token_getters: dict[str, Callable[[], str]] = {},
113113
bound_params: Mapping[str, Union[Callable[[], Any], Any]] = {},
114114
strict: bool = False,
@@ -117,7 +117,7 @@ def load_toolset(
117117
Synchronously fetches a toolset and loads all tools defined within it.
118118
119119
Args:
120-
name: Name of the toolset to load tools.
120+
name: Name of the toolset to load. If None, loads the default toolset.
121121
auth_token_getters: A mapping of authentication service names to
122122
callables that return the corresponding authentication token.
123123
bound_params: A mapping of parameter names to bind to specific values or

0 commit comments

Comments
 (0)