π OpenHands: AI-Driven Development
Remove unused AgentSummarizeAction and SUMMARIZE action type (#7283)
Engel Nystff6312ab02d4
diff --git a/openhands/core/schema/action.py b/openhands/core/schema/action.pyindex f81dc58ab9..c3e59d2c07 100644--- a/openhands/core/schema/action.py+++ b/openhands/core/schema/action.py@@ -60,8 +60,6 @@ class ActionTypeSchema(BaseModel):NULL: str = Field(default='null')- SUMMARIZE: str = Field(default='summarize')-PAUSE: str = Field(default='pause')"""Pauses the task."""diff --git a/openhands/events/action/__init__.py b/openhands/events/action/__init__.pyindex c007632e73..bd610678a1 100644--- a/openhands/events/action/__init__.py+++ b/openhands/events/action/__init__.py@@ -3,7 +3,6 @@ from openhands.events.action.agent import (AgentDelegateAction,AgentFinishAction,AgentRejectAction,- AgentSummarizeAction,AgentThinkAction,ChangeAgentStateAction,RecallAction,@@ -30,7 +29,6 @@ __all__ = ['AgentFinishAction','AgentRejectAction','AgentDelegateAction',- 'AgentSummarizeAction','ChangeAgentStateAction','IPythonRunCellAction','MessageAction',diff --git a/openhands/events/action/agent.py b/openhands/events/action/agent.pyindex 01ab8d05e4..958ad7d7d7 100644--- a/openhands/events/action/agent.py+++ b/openhands/events/action/agent.py@@ -20,21 +20,6 @@ class ChangeAgentStateAction(Action):return f'Agent state changed to {self.agent_state}'-@dataclass-class AgentSummarizeAction(Action):- summary: str- action: str = ActionType.SUMMARIZE-- @property- def message(self) -> str:- return self.summary-- def __str__(self) -> str:- ret = '**AgentSummarizeAction**\n'- ret += f'SUMMARY: {self.summary}'- return ret--class AgentFinishTaskCompleted(Enum):FALSE = 'false'PARTIAL = 'partial'