Files
OpenHands/opendevin/core/schema/observation.py
Xingyao Wang e45ddeb2a2 arch: deprecating recall action and search_memory (#2900)
* deprecating recall action

* fix integration tests

* fix integration tests

* remove search memory
2024-07-12 19:23:21 +00:00

47 lines
1004 B
Python

from pydantic import BaseModel, Field
__all__ = ['ObservationType']
class ObservationTypeSchema(BaseModel):
READ: str = Field(default='read')
"""The content of a file
"""
WRITE: str = Field(default='write')
BROWSE: str = Field(default='browse')
"""The HTML content of a URL
"""
RUN: str = Field(default='run')
"""The output of a command
"""
RUN_IPYTHON: str = Field(default='run_ipython')
"""Runs a IPython cell.
"""
CHAT: str = Field(default='chat')
"""A message from the user
"""
DELEGATE: str = Field(default='delegate')
"""The result of a task delegated to another agent
"""
MESSAGE: str = Field(default='message')
ERROR: str = Field(default='error')
SUCCESS: str = Field(default='success')
NULL: str = Field(default='null')
AGENT_STATE_CHANGED: str = Field(default='agent_state_changed')
USER_REJECTED: str = Field(default='user_rejected')
ObservationType = ObservationTypeSchema()