SkyworkAI / agent-studio

Benchmarks, environments, and toolkits for general computer agents
https://skyworkai.github.io/agent-studio/
GNU Affero General Public License v3.0
148 stars 10 forks source link

ValueError: No prompt added #51

Open zhengshf opened 1 month ago

zhengshf commented 1 month ago

tasks:data/grounding/linux/os/tasks.jsonl

2024-07-09 14:28:30,722 ERROR run.py:294 -- [Unhandled Error] ValueError('No prompt added')] 2024-07-09 14:28:30,723 ERROR run.py:295 -- Traceback (most recent call last): File "/home/zsf/codebase/agent-studio/run.py", line 217, in eval_headless agent.reset( File "/home/zsf/codebase/agent-studio/agent_studio/agent/direct_agent.py", line 36, in reset self.system_prompt = composer.compose() ^^^^^^^^^^^^^^^^^^ File "/home/zsf/codebase/agent-studio/agent_studio/utils/prompt.py", line 115, in compose raise ValueError("No prompt added") ValueError: No prompt added

zhengshf commented 1 month ago

python run.py --mode eval

thisiszy commented 1 month ago

Hi @zhengshf , Could you please provide more information? E.g. the agent_studio/config/config.py file. I tried in the GUI mode and can't reproduce your error. image

zhengshf commented 1 month ago

config.py.zip

It was resolved when i add the code "composer.add("system_prompt")" in direct_agent.py before "composer.compose()".

zhengshf commented 1 month ago

The diff is "data/grounding/linux/os/tasks.jsonl" between of us.

my data/grounding/linux/os/tasks.jsonl is : {"task_id": "15e27479-d6f5-4d67-aa2e-586c16f41277", "instruction": "Click the right bottom Power button", "evals": [], "visual": true} {"task_id": "cfaa100d-8696-4e34-9468-43f719d9c4a9", "instruction": "Cancel", "evals": [], "visual": true} {"task_id": "f0f074f9-1f75-44a9-b384-dc6afe8bd743", "instruction": "Click the Internet.", "evals": [], "visual": true} {"task_id": "d884e2fc-b613-4687-b846-8a0bdadeef15", "instruction": "Click \"Image Viewer\"", "evals": [], "visual": true}

your is: image