Spaces:
Build error
Build error
Download openhands/events/observation/delegate.py from Backup-bdg/OpenHands: direct link, hf CLI and curl.
- Browser
- Download file 609 Bytes
-
https://huggingface.co/spaces/Backup-bdg/OpenHands/resolve/main/openhands/events/observation/delegate.py
- Command line
-
hf download hf://spaces/Backup-bdg/OpenHands/openhands/events/observation/delegate.py
-
curl -L -o delegate.py https://huggingface.co/spaces/Backup-bdg/OpenHands/resolve/main/openhands/events/observation/delegate.py
609 Bytes
| from dataclasses import dataclass | |
| from openhands.core.schema import ObservationType | |
| from openhands.events.observation.observation import Observation | |
| class AgentDelegateObservation(Observation): | |
| """This data class represents the result from delegating to another agent. | |
| Attributes: | |
| content (str): The content of the observation. | |
| outputs (dict): The outputs of the delegated agent. | |
| observation (str): The type of observation. | |
| """ | |
| outputs: dict | |
| observation: str = ObservationType.DELEGATE | |
| def message(self) -> str: | |
| return '' | |