Failed to add my new tools.
I followed your documentation(https://os-copilot.readthedocs.io/en/latest/tutorials/add_tool.html) and executed the command to add the tool(FRIDAY-Gizmos/Basic/create_folder.py).
The specific command is "python oscopilot/tool_repository/manager/tool_manager.py --add --tool_name create_folder --tool_path FRIDAY-Gizmos/Basic/create_folder.py" and my file structure screenshot is follow:
The error is "Error: No description found", then the comman terminate.
By the way, I want to ask that how to check if a new tool is added successfully and which tools have I added?
Thanks for your helping!
Thank you very much for identifying this issue. I have investigated and found that it was caused by a problem with the regular expression, which resulted in the failure to extract the description. I have already submitted a new PR, and you can refer to it.
Additionally, when a tool is successfully saved, there will be a feedback in the terminal. The saved tools can be viewed in the following path: OS-Copilot/oscopilot/tool_repository/generated_tools/generated_tools.json.
Thanks for your attention!
I updated the project and when I tried to add the created_folder tool, there is still an error.
The embedding_function should theoretically be initialized by line 68. I'm not sure if modifications you made to the code might have caused the initialization error. I've run it on my end using the latest code and encountered no issues.
It is regretful that I have not changed any code and cloned your project several times. Can you show me your .env file? I guess something changed by checking the code.
It is regretful that I have not changed any code and cloned your project several times. Can you show me your .env file? I guess something changed by checking the code.
We have updated the code. You can check the latest code and try again.