Delete a tool given the ID. Args: id (str): ID of the tool
(self, name: str)
| 1648 | return [Tool(**tool) for tool in response.json()] |
| 1649 | |
| 1650 | def delete_tool(self, name: str): |
| 1651 | """ |
| 1652 | Delete a tool given the ID. |
| 1653 | |
| 1654 | Args: |
| 1655 | id (str): ID of the tool |
| 1656 | """ |
| 1657 | response = requests.delete(f"{self.base_url}/{self.api_prefix}/tools/{name}", headers=self.headers) |
| 1658 | if response.status_code != 200: |
| 1659 | raise ValueError(f"Failed to delete tool: {response.text}") |
| 1660 | |
| 1661 | def get_tool(self, id: str) -> Optional[Tool]: |
| 1662 | """ |