Spaces:
Configuration error
Configuration error
Download openhands/events/observation/success.py from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 395 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/openhands/events/observation/success.py
- Command line
-
hf download hf://spaces/flyingdarkdev/README/openhands/events/observation/success.py
-
curl -L -o success.py https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/openhands/events/observation/success.py
395 Bytes
| from dataclasses import dataclass | |
| from openhands.core.schema import ObservationType | |
| from openhands.events.observation.observation import Observation | |
| class SuccessObservation(Observation): | |
| """This data class represents the result of a successful action.""" | |
| observation: str = ObservationType.SUCCESS | |
| def message(self) -> str: | |
| return self.content | |