HostCapabilities#
- class openstef_foundation_models.inference.provider_selection.HostCapabilities(*, platform: str, available_providers: frozenset[str])[source]
Bases:
BaseConfigExecution-relevant facts about the host, captured as injectable data.
Passing host facts into a policy (rather than having the policy call
platform.system()itself) keeps selection a pure function of its inputs, so it can be unit-tested by constructing a fake host.- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': False, 'extra': 'ignore', 'frozen': True, 'protected_namespaces': ()}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- platform: str