refactor: restructure microagents system (#5886)

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Graham Neubig <neubig@gmail.com>
This commit is contained in:
Xingyao Wang
2025-01-02 17:13:18 -05:00
committed by GitHub
parent 8983d719bd
commit c1b514e9d3
24 changed files with 771 additions and 142 deletions

View File

@@ -11,7 +11,9 @@ from openhands.core.exceptions import (
)
from openhands.llm.llm import LLM
from openhands.runtime.plugins import PluginRequirement
from openhands.utils.prompt import PromptManager
if TYPE_CHECKING:
from openhands.utils.prompt import PromptManager
class Agent(ABC):
@@ -34,7 +36,7 @@ class Agent(ABC):
self.llm = llm
self.config = config
self._complete = False
self.prompt_manager: PromptManager | None = None
self.prompt_manager: 'PromptManager' | None = None
@property
def complete(self) -> bool: