helloparthshah commited on
Commit
7ec3df9
·
1 Parent(s): daa80d3

Fixed a bug with tool creation

Browse files
Files changed (1) hide show
  1. src/manager/manager.py +4 -2
src/manager/manager.py CHANGED
@@ -148,12 +148,14 @@ class GeminiManager:
148
  if function_call.name == "ToolCreator" or function_call.name == "ToolDeletor":
149
  self.toolsLoader.load_tools()
150
  except Exception as e:
151
- logger.info(f"Error loading tools: {e}. Deleting the tool.")
152
  yield {
153
  "role": "assistant",
154
- "content": f"Error loading tools: {e}. Deleting the tool.\n",
155
  "metadata": {
156
  "title": "Trying to load the newly created tool",
 
 
157
  }
158
  }
159
  # delete the created tool
 
148
  if function_call.name == "ToolCreator" or function_call.name == "ToolDeletor":
149
  self.toolsLoader.load_tools()
150
  except Exception as e:
151
+ logger.info(f"Error loading tools: {str(e)}. Deleting the tool.")
152
  yield {
153
  "role": "assistant",
154
+ "content": f"Error loading tools: {str(e)}. Deleting the tool.\n",
155
  "metadata": {
156
  "title": "Trying to load the newly created tool",
157
+ "id": i,
158
+ "status": "done",
159
  }
160
  }
161
  # delete the created tool