Skip to content

KeyError: 'Code Interpreter' #116

@aalex

Description

@aalex

I've enabled the "Code Interpreter" tool, and then the "Custom Code Interpreter" tool. What appeared in the list of tools is twice the name "Code Interpretor". (none had "Custom" in its name)

Next, this traceback appeared, and doesn't disappear. I am stuck seeing this:

❯ KeyError: 'Code Interpreter'

File "/CrewAI-Studio/app/app.py", line 72, in <module>
    main()
File "/CrewAI-Studio/app/app.py", line 66, in main
    load_data()
File "/CrewAI-Studio/app/app.py", line 30, in load_data
    ss.agents = db_utils.load_agents()
                ^^^^^^^^^^^^^^^^^^^^^^
File "/CrewAI-Studio/app/db_utils.py", line 143, in load_agents
    tools_dict = {tool.tool_id: tool for tool in load_tools()}
                                                 ^^^^^^^^^^^^
File "/CrewAI-Studio/app/db_utils.py", line 248, in load_tools
    tool_class = TOOL_CLASSES[data['name']]
                 ~~~~~~~~~~~~^^^^^^^^^^^^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions