Skip to main content

openhands.core.schema.action

ActionTypeSchema Objects

class ActionTypeSchema(BaseModel)

INIT

Initializes the agent. Only sent by client.

MESSAGE

Represents a message.

START

Starts a new development task OR send chat from the user. Only sent by the client.

READ

Reads the content of a file.

WRITE

Writes the content to a file.

RUN

Runs a command.

RUN_IPYTHON

Runs a IPython cell.

BROWSE

Opens a web page.

BROWSE_INTERACTIVE

Interact with the browser instance.

DELEGATE

Delegates a task to another agent.

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

If you're absolutely certain that you cannot complete the task with given requirements, use the reject action to stop working.

PAUSE

Pauses the task.

RESUME

Resumes the task.

STOP

Stops the task. Must send a start action to restart a new task.

PUSH

Push a branch to github.

SEND_PR

Send a PR to github.