跳到主要内容

openhands.storage.settings_store

SettingsStore Objects

class SettingsStore(ABC)

Storage for SessionInitData. May or may not support multiple users depending on the environment

load

@abstractmethod
async def load() -> Settings | None

Load session init data

store

@abstractmethod
async def store(settings: Settings)

Store session init data

get_instance

@classmethod
@abstractmethod
async def get_instance(cls, config: AppConfig,
token: str | None) -> SettingsStore

Get a store for the user represented by the token given