mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
* Fix AgentRejectAction handling * Add ManagerAgent to integration tests * Fix regenerate.sh * Fix merge * Update README for micro-agents * Add test reject to regenerate.sh * regenerate.sh: Add support for running a specific test and/or agent * Refine reject schema, and allow ManagerAgent to handle reject * Add test artifacts for test_simple_task_rejection * Fix manager agent tests * Fix README * test_simple_task_rejection: check final agent state * Integration test: exit if mock prompt not found * Update test_simple_task_rejection tests * Fix test_edits test artifacts after prompt update * Fix ManagerAgent test_edits * WIP * Fix tests * update test_edits for ManagerAgent * Skip local sandbox for reject test * Fix test comparison
40 lines
683 B
Python
40 lines
683 B
Python
from enum import Enum
|
|
|
|
|
|
class AgentState(str, Enum):
|
|
LOADING = 'loading'
|
|
"""The agent is loading.
|
|
"""
|
|
|
|
INIT = 'init'
|
|
"""The agent is initialized.
|
|
"""
|
|
|
|
RUNNING = 'running'
|
|
"""The agent is running.
|
|
"""
|
|
|
|
AWAITING_USER_INPUT = 'awaiting_user_input'
|
|
"""The agent is awaiting user input.
|
|
"""
|
|
|
|
PAUSED = 'paused'
|
|
"""The agent is paused.
|
|
"""
|
|
|
|
STOPPED = 'stopped'
|
|
"""The agent is stopped.
|
|
"""
|
|
|
|
FINISHED = 'finished'
|
|
"""The agent is finished with the current task.
|
|
"""
|
|
|
|
REJECTED = 'rejected'
|
|
"""The agent rejects the task.
|
|
"""
|
|
|
|
ERROR = 'error'
|
|
"""An error occurred during the task.
|
|
"""
|