Skip to content

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

@sosacrazy126

Description

@sosacrazy126

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.

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