mirror of
https://github.com/meta-llama/llama-stack.git
synced 2026-01-02 03:50:01 +00:00
fix: toolgroups unregister
# What does this PR do? ## Test Plan
This commit is contained in:
parent
113f3a259c
commit
a27a576695
2 changed files with 13 additions and 1 deletions
|
|
@ -567,7 +567,7 @@ class ToolGroupsRoutingTable(CommonRoutingTableImpl, ToolGroups):
|
|||
tool_group = await self.get_tool_group(toolgroup_id)
|
||||
if tool_group is None:
|
||||
raise ValueError(f"Tool group {toolgroup_id} not found")
|
||||
tools = await self.list_tools(toolgroup_id).data
|
||||
tools = (await self.list_tools(toolgroup_id)).data
|
||||
for tool in tools:
|
||||
await self.unregister_object(tool)
|
||||
await self.unregister_object(tool_group)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue