Skip to content

Commit d07f2f7

Browse files
authored
feat: Allow loading default toolset
1 parent 7a36cd0 commit d07f2f7

File tree

1 file changed

+2
-2
lines changed
  • packages/toolbox-core/src/toolbox_core

1 file changed

+2
-2
lines changed

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

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

172172
async def load_toolset(
173173
self,
174-
name: str,
174+
name: Optional[str] = None,
175175
auth_token_getters: dict[str, Callable[[], str]] = {},
176176
bound_params: Mapping[str, Union[Callable[[], Any], Any]] = {},
177177
) -> list[ToolboxTool]:
@@ -192,7 +192,7 @@ async def load_toolset(
192192
in the toolset.
193193
"""
194194
# Request the definition of the tool from the server
195-
url = f"{self.__base_url}/api/toolset/{name}"
195+
url = f"{self.__url}/api/toolset/{toolset_name or ''}"
196196
async with self.__session.get(url) as response:
197197
json = await response.json()
198198
manifest: ManifestSchema = ManifestSchema(**json)

0 commit comments

Comments
 (0)