bug:
`────────────────────────── Traceback (most recent call last) ───────────────────────────
C:\Users\86182.pyenv\pyenv-win\versions\3.11.9\Lib\site-packages\streamlit\runtime
scriptrunner\exec_code.py:129 in exec_func_with_error_handling
C:\Users\86182.pyenv\pyenv-win\versions\3.11.9\Lib\site-packages\streamlit\runtime
scriptrunner\script_runner.py:669 in code_to_exec
E:\CrewAI-Visualizer\CrewAI-Studio\app\app.py:72 in
69 │ pages()[ss.page].draw()
70
71 if __name__ == '__main__':
❱ 72 │ main()
73
E:\CrewAI-Visualizer\CrewAI-Studio\app\app.py:66 in main
63 │ │ │ print(f"Error initializing AgentOps: {str(e)}")
64 │
65 │ db_utils.initialize_db()
❱ 66 │ load_data()
67 │ draw_sidebar()
68 │ PageCrewRun.maintain_session_state() #this will persist the session state f
69 │ pages()[ss.page].draw()
E:\CrewAI-Visualizer\CrewAI-Studio\app\app.py:30 in load_data
27 │ }
28
29 def load_data():
❱ 30 │ ss.agents = db_utils.load_agents()
31 │ ss.tasks = db_utils.load_tasks()
32 │ ss.crews = db_utils.load_crews()
33 │ ss.tools = db_utils.load_tools()
E:\CrewAI-Visualizer\CrewAI-Studio\app\db_utils.py:143 in load_agents
140 def load_agents():
141 │ from my_agent import MyAgent
142 │ rows = load_entities('agent')
❱ 143 │ tools_dict = {tool.tool_id: tool for tool in load_tools()}
144 │ agents = []
145 │ for row in rows:
146 │ │ data = row[1]
E:\CrewAI-Visualizer\CrewAI-Studio\app\db_utils.py:248 in load_tools
245 │ tools = []
246 │ for row in rows:
247 │ │ data = row[1]
❱ 248 │ │ tool_class = TOOL_CLASSES[data['name']]
249 │ │ tool = tool_class(tool_id=row[0])
250 │ │ tool.set_parameters(**data['parameters'])
251 │ │ tools.append(tool)
────────────────────────────────────────────────────────────────────────────────────────
KeyError: '网站搜索工具'`
Temporary solution:
my_tools.py TOOL_CLASSES add the key mapping
for example :
'WebsiteSearchTool': MyWebsiteSearchTool,
'网站搜索工具': MyWebsiteSearchTool,
bug:
`────────────────────────── Traceback (most recent call last) ───────────────────────────
C:\Users\86182.pyenv\pyenv-win\versions\3.11.9\Lib\site-packages\streamlit\runtime
scriptrunner\exec_code.py:129 in exec_func_with_error_handling
C:\Users\86182.pyenv\pyenv-win\versions\3.11.9\Lib\site-packages\streamlit\runtime
scriptrunner\script_runner.py:669 in code_to_exec
E:\CrewAI-Visualizer\CrewAI-Studio\app\app.py:72 in
❱ 72 │ main()
73
E:\CrewAI-Visualizer\CrewAI-Studio\app\app.py:66 in main
❱ 66 │ load_data()
67 │ draw_sidebar()
68 │ PageCrewRun.maintain_session_state() #this will persist the session state f
69 │ pages()[ss.page].draw()
E:\CrewAI-Visualizer\CrewAI-Studio\app\app.py:30 in load_data
❱ 30 │ ss.agents = db_utils.load_agents()
31 │ ss.tasks = db_utils.load_tasks()
32 │ ss.crews = db_utils.load_crews()
33 │ ss.tools = db_utils.load_tools()
E:\CrewAI-Visualizer\CrewAI-Studio\app\db_utils.py:143 in load_agents
❱ 143 │ tools_dict = {tool.tool_id: tool for tool in load_tools()}
144 │ agents = []
145 │ for row in rows:
146 │ │ data = row[1]
E:\CrewAI-Visualizer\CrewAI-Studio\app\db_utils.py:248 in load_tools
❱ 248 │ │ tool_class = TOOL_CLASSES[data['name']]
249 │ │ tool = tool_class(tool_id=row[0])
250 │ │ tool.set_parameters(**data['parameters'])
251 │ │ tools.append(tool)
────────────────────────────────────────────────────────────────────────────────────────
KeyError: '网站搜索工具'`
Temporary solution:
my_tools.py TOOL_CLASSES add the key mapping
for example :
'WebsiteSearchTool': MyWebsiteSearchTool,
'网站搜索工具': MyWebsiteSearchTool,