agent.py 420 B

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