Skip to content

python run_pending_forge.py 运行失败 #1

Closed

Description

@JabinGP

复制 README 的 b_directions 示例后,补跑 Forge 报找不到知识文件

按 README 4.3 把下面这段加进了 config/providers.local.json:

"idea_forge": {
  "b_directions": ["Agent_运行时与沙箱", "视觉推理"]
}

随后运行 python run_pending_forge.py,读到种子后就退出了:

读取到 1 个待补跑种子
ValueError: config 的 idea_forge.b_directions 里这些既不在领域方向库、knowledge_base/ 下也没有同名 .md: ['Agent_运行时与沙箱', '视觉推理']。当前可用的知识文件有 4 个,用 `python src/idea_forge/b_library.py` 查看。

检查 knowledge_base/ 后,发现仓库自带的是 agent_memory、llm_reasoning、mllm_fusion 和 mllm_visual_tokens,没有示例里的两个名字。把配置改成 agent_memory 和 llm_reasoning 后,方向选择就能通过。

最小复现是在模板配置里加入上面的片段,并在 data/pending_forge_seeds.json 放一条种子:

[{"title": "Evaluate retrieval strategies for long-term agent memory", "url": "https://example.org/research"}]

再运行 python run_pending_forge.py 即可,错误发生在模型调用之前。

这里是漏提交了知识文件,还是 README 的例子需要更新?希望示例能直接使用仓库已有的方向;如果需要自己先创建文件,也请在代码块前说明。

环境:macOS arm64,Python 3.12.13。

对应示例:README 4.3,中文 README 也使用相同的两个名字。

Activity

  1. Mike-7777777 commented on Sep 10, 2026

    @Mike-7777777
    Collaborator

    Thank you for the detailed report and minimal reproduction, @JabinGP. We reproduced the failure and confirmed that the README example references direction names that are not included in the repository. The example needs to be updated; no additional knowledge files are required to use the bundled directions.

    We have opened #5 to correct the examples in both the English and Chinese READMEs, clarify the prerequisite for custom directions, and add regression coverage for the documented configuration.

    In the meantime, please use the following in config/providers.local.json, while keeping your existing provider settings:

    "idea_forge": {
      "b_directions": ["agent_memory", "llm_reasoning"]
    }

    Both names correspond to knowledge files shipped with the repository. For a custom direction, create the corresponding Markdown file under knowledge_base/ before adding its name to the configuration.

    The corrected example passes direction selection in the pending-Forge entrypoint, and the offline test suite passes locally. The PR is awaiting CI and review. We appreciate your help improving the setup experience, and apologize for the confusion caused by the example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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