Spaces:
Configuration error
Configuration error
Download openhands/storage/settings/settings_store.py from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 747 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/openhands/storage/settings/settings_store.py
- Command line
-
hf download hf://spaces/flyingdarkdev/README/openhands/storage/settings/settings_store.py
-
curl -L -o settings_store.py https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/openhands/storage/settings/settings_store.py
747 Bytes
| from __future__ import annotations | |
| from abc import ABC, abstractmethod | |
| from openhands.core.config.app_config import AppConfig | |
| from openhands.server.settings import Settings | |
| class SettingsStore(ABC): | |
| """Storage for ConversationInitData. May or may not support multiple users depending on the environment.""" | |
| async def load(self) -> Settings | None: | |
| """Load session init data.""" | |
| async def store(self, settings: Settings) -> None: | |
| """Store session init data.""" | |
| async def get_instance( | |
| cls, config: AppConfig, user_id: str | None | |
| ) -> SettingsStore: | |
| """Get a store for the user represented by the token given.""" | |