agent.py 613 B

1234567891011121314151617181920212223242526272829303132333435
  1. from enum import Enum
  2. class AgentState(str, Enum):
  3. LOADING = 'loading'
  4. """The agent is loading.
  5. """
  6. INIT = 'init'
  7. """The agent is initialized.
  8. """
  9. RUNNING = 'running'
  10. """The agent is running.
  11. """
  12. AWAITING_USER_INPUT = 'awaiting_user_input'
  13. """The agent is awaiting user input.
  14. """
  15. PAUSED = 'paused'
  16. """The agent is paused.
  17. """
  18. STOPPED = 'stopped'
  19. """The agent is stopped.
  20. """
  21. FINISHED = 'finished'
  22. """The agent is finished with the current task.
  23. """
  24. ERROR = 'error'
  25. """An error occurred during the task.
  26. """