Spaces:
Configuration error
Configuration error
Download openhands/runtime/plugins/requirement.py from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 662 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/openhands/runtime/plugins/requirement.py
- Command line
-
hf download hf://spaces/flyingdarkdev/README/openhands/runtime/plugins/requirement.py
-
curl -L -o requirement.py https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/openhands/runtime/plugins/requirement.py
662 Bytes
| from abc import abstractmethod | |
| from dataclasses import dataclass | |
| from openhands.events.action import Action | |
| from openhands.events.observation import Observation | |
| class Plugin: | |
| """Base class for a plugin. | |
| This will be initialized by the runtime client, which will run inside docker. | |
| """ | |
| name: str | |
| async def initialize(self, username: str): | |
| """Initialize the plugin.""" | |
| pass | |
| async def run(self, action: Action) -> Observation: | |
| """Run the plugin for a given action.""" | |
| pass | |
| class PluginRequirement: | |
| """Requirement for a plugin.""" | |
| name: str | |