delegate.py 609 B

12345678910111213141516171819202122
  1. from dataclasses import dataclass
  2. from openhands.core.schema import ObservationType
  3. from openhands.events.observation.observation import Observation
  4. @dataclass
  5. class AgentDelegateObservation(Observation):
  6. """This data class represents the result from delegating to another agent.
  7. Attributes:
  8. content (str): The content of the observation.
  9. outputs (dict): The outputs of the delegated agent.
  10. observation (str): The type of observation.
  11. """
  12. outputs: dict
  13. observation: str = ObservationType.DELEGATE
  14. @property
  15. def message(self) -> str:
  16. return ''