agent.py 437 B

12345678910111213141516
  1. from dataclasses import dataclass
  2. from openhands.core.schema import ObservationType
  3. from openhands.events.observation.observation import Observation
  4. @dataclass
  5. class AgentStateChangedObservation(Observation):
  6. """This data class represents the result from delegating to another agent"""
  7. agent_state: str
  8. observation: str = ObservationType.AGENT_STATE_CHANGED
  9. @property
  10. def message(self) -> str:
  11. return ''