Skip to content

run_eval.py 在部分任务上强依赖 init.sh / encrypt.py,但任务目录中不存在这两个文件 #6

Description

@liusuanchao

我在运行 agentrisk/run_eval.py 时遇到初始化失败,怀疑当前代码和任务包结构不匹配。
复现命令
python agentrisk/run_eval.py
--task-path workspaces/terminal/multi_turn_tasks/multi-turn_root-remove
--agent-llm-config agent
--agent-llm-config-file /home/lsc/Desktop/ToolShield/agentrisk/agent_config/config.toml
--env-llm-config env
--env-llm-config-file /home/lsc/Desktop/ToolShield/agentrisk/agent_config/config.toml
--outputs-path output/eval
--server-hostname localhost
现象
运行到初始化阶段时失败,日志显示:
python: can't open file '/utils/encrypt.py': [Errno 2] No such file or directory
进一步检查后发现:
workspaces/terminal/multi_turn_tasks/multi-turn_root-remove/utils/ 下只有 dependencies.yml 和 evaluator.py
仓库里没有找到 init.sh
仓库里也没有找到 encrypt.py

想请教的问题
这两个脚本是应该由每个任务目录单独提供,还是项目当前版本已经不再需要它们?
如果是旧接口,是否应该在 run_eval.py 中增加存在性判断,缺失时跳过?
目前任务包的标准结构应该是什么?只需要 task.md + evaluator.py,还是还必须有 init.sh / encrypt.py?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions