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

Đang mở
#309 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

@Li-john1021 đang làm issue này rồi.

Từ ngày 14/10/2026.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
ai, backend

Hướng nghiên cứu

Kiểm tra MindSearchAgent, WebSearchGraph, SearcherAgent và phần khởi tạo được kế thừa của StreamingAgentForInternLM. Trước tiên, hãy lần theo nơi plugin_executor và interpreter_executor được mong đợi, rồi tái hiện cảnh báo được mô tả tại dòng 99 của stream.py. Hoàn thành khi planner có thể xây dựng và thực thi search graph mà không có cảnh báo executor không phù hợp, trong khi các instance của SearcherAgent vẫn giữ hỗ trợ plugin.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
JavaScript
Star
7k
Fork
684
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của InternLM/MindSearch

Tất cả issue của InternLM/MindSearch

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.