The ExecutionAction class doesn't take any plugins in its constructor

オープン
#309 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

@Li-john1021 がすでに取り組んでいます。

2026年10月14日 から。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
ai, backend

調査の方向性

MindSearchAgent、WebSearchGraph、SearcherAgent、および継承元である StreamingAgentForInternLM の初期化を調査してください。まず plugin_executor と interpreter_executor がどこで想定されているかを追跡し、stream.py の 99 行目で説明されている warning を再現してください。完了条件は、planner が不適切な executor warning なしに search graph を構築して実行でき、SearcherAgent インスタンスが plugin のサポートを保持していることです。

索引モデルが issue の本文から書いたものです。

説明

The ExecutionAction class doesn't take any plugins in its constructor - it's just a simple action that executes Python code. The actual search functionality happens in the SearcherAgent instances that are created within the WebSearchGraph.

The problem is that the SearcherAgent instances are created with the searcher_cfg configuration, and they should have the plugins. Let me check how the SearcherAgent is initialized:

Looking at the code, I can see that:

MindSearchAgent sets WebSearchGraph.SEARCHER_CONFIG = searcher_cfg
WebSearchGraph creates SearcherAgent instances using this config
The SearcherAgent should inherit from StreamingAgentForInternLM which should have plugin support
The issue is that the warning is coming from the main MindSearchAgent, not the SearcherAgent instances. The MindSearchAgent itself doesn't need plugins - it just needs to create the graph execution code.Looking at the StreamingAgentForInternLM class, I can see that it expects to have plugin_executor and interpreter_executor attributes, but the MindSearchAgent doesn't initialize them.

The warning comes from line 99 in /home/augment-agent/.local/lib/python3.10/site-packages/lagent/agents/stream.py which checks if these executors are initialized.

The MindSearchAgent is supposed to be a planner that generates Python code to create search graphs, not directly execute plugins. However, the base class StreamingAgentForInternLM expects plugin executors to be available.

Let me check what the original working version does. The issue is that the MindSearchAgent inherits from StreamingAgentForInternLM but doesn't properly initialize the plugin and interpreter executors.

Looking at the code, I can see that the MindSearchAgent should not be calling plugins directly - it should be generating code that creates WebSearchGraph instances, which then create SearcherAgent instances that have the plugins.

主要言語
JavaScript
スター
7k
フォーク
684
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

InternLM/MindSearch のほかの issue

InternLM/MindSearch の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。