mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Co-authored-by: openhands <openhands@all-hands.dev> Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
58 lines
1.0 KiB
Python
58 lines
1.0 KiB
Python
from enum import Enum
|
|
|
|
|
|
class ObservationType(str, Enum):
|
|
READ = 'read'
|
|
"""The content of a file
|
|
"""
|
|
|
|
WRITE = 'write'
|
|
|
|
EDIT = 'edit'
|
|
|
|
BROWSE = 'browse'
|
|
"""The HTML content of a URL
|
|
"""
|
|
|
|
RUN = 'run'
|
|
"""The output of a command
|
|
"""
|
|
|
|
RUN_IPYTHON = 'run_ipython'
|
|
"""Runs a IPython cell.
|
|
"""
|
|
|
|
CHAT = 'chat'
|
|
"""A message from the user
|
|
"""
|
|
|
|
DELEGATE = 'delegate'
|
|
"""The result of a task delegated to another agent
|
|
"""
|
|
|
|
MESSAGE = 'message'
|
|
|
|
ERROR = 'error'
|
|
|
|
SUCCESS = 'success'
|
|
|
|
NULL = 'null'
|
|
|
|
THINK = 'think'
|
|
|
|
AGENT_STATE_CHANGED = 'agent_state_changed'
|
|
|
|
USER_REJECTED = 'user_rejected'
|
|
|
|
CONDENSE = 'condense'
|
|
"""Result of a condensation operation."""
|
|
|
|
RECALL = 'recall'
|
|
"""Result of a recall operation. This can be the workspace context, a microagent, or other types of information."""
|
|
|
|
MCP = 'mcp'
|
|
"""Result of a MCP Server operation"""
|
|
|
|
DOWNLOAD = 'download'
|
|
"""Result of downloading/opening a file via the browser"""
|