Spaces:
Build error
Build error
| 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) -> None: | |
| """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 | |