# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026 # This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1. # OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to: # - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk # - V1 application server (in this repo): openhands/app_server/ # Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above. # Tag: Legacy-V0 from enum import Enum class ActionType(str, Enum): MESSAGE = 'message' """Represents a message. """ SYSTEM = 'system' """Represents a system message. """ START = 'start' """Starts a new development task OR send chat from the user. Only sent by the client. """ READ = 'read' """Reads the content of a file. """ WRITE = 'write' """Writes the content to a file. """ EDIT = 'edit' """Edits a file by providing a draft. """ RUN = 'run' """Runs a command. """ RUN_IPYTHON = 'run_ipython' """Runs a IPython cell. """ BROWSE = 'browse' """Opens a web page. """ BROWSE_INTERACTIVE = 'browse_interactive' """Interact with the browser instance. """ MCP = 'call_tool_mcp' """Interact with the MCP server. """ DELEGATE = 'delegate' """Delegates a task to another agent. """ THINK = 'think' """Logs a thought. """ FINISH = 'finish' """If you're absolutely certain that you've completed your task and have tested your work, use the finish action to stop working. """ REJECT = 'reject' """If you're absolutely certain that you cannot complete the task with given requirements, use the reject action to stop working. """ NULL = 'null' PAUSE = 'pause' """Pauses the task. """ RESUME = 'resume' """Resumes the task. """ STOP = 'stop' """Stops the task. Must send a start action to restart a new task. """ CHANGE_AGENT_STATE = 'change_agent_state' PUSH = 'push' """Push a branch to github.""" SEND_PR = 'send_pr' """Send a PR to github.""" RECALL = 'recall' """Retrieves content from a user workspace, microagent, or other source.""" CONDENSATION = 'condensation' """Condenses a list of events into a summary.""" CONDENSATION_REQUEST = 'condensation_request' """Request for condensation of a list of events.""" TASK_TRACKING = 'task_tracking' """Views or updates the task list for task management.""" LOOP_RECOVERY = 'loop_recovery' """Recover dead loop."""